sintonia/api/libretime_api/urls.py

39 lines
1009 B
Python
Raw Permalink Normal View History

"""
URL Configuration
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/http/urls/
"""
chore(deps): update pre-commit hook psf/black-pre-commit-mirror to v24 (#2917) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [psf/black-pre-commit-mirror](https://togithub.com/psf/black-pre-commit-mirror) | repository | major | `23.12.1` -> `24.1.1` | Note: The `pre-commit` manager in Renovate is not supported by the `pre-commit` maintainers or community. Please do not report any problems there, instead [create a Discussion in the Renovate repository](https://togithub.com/renovatebot/renovate/discussions/new) if you have any questions. --- ### Release Notes <details> <summary>psf/black-pre-commit-mirror (psf/black-pre-commit-mirror)</summary> ### [`v24.1.1`](https://togithub.com/psf/black-pre-commit-mirror/compare/24.1.0...24.1.1) [Compare Source](https://togithub.com/psf/black-pre-commit-mirror/compare/24.1.0...24.1.1) ### [`v24.1.0`](https://togithub.com/psf/black-pre-commit-mirror/compare/23.12.1...24.1.0) [Compare Source](https://togithub.com/psf/black-pre-commit-mirror/compare/23.12.1...24.1.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/libretime/libretime). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE1My4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: jo <ljonas@riseup.net>
2024-02-02 20:24:25 +01:00
2020-01-30 14:47:36 +01:00
from django.urls import include, path
2021-10-16 20:34:03 +02:00
from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView
2020-01-30 14:47:36 +01:00
from .core.router import urls as core_urls
from .history.router import urls as history_urls
from .podcasts.router import urls as podcasts_urls
from .schedule.router import urls as schedule_urls
from .storage.router import urls as storage_urls
2020-01-30 14:47:36 +01:00
api_urls = []
api_urls += core_urls
api_urls += history_urls
api_urls += podcasts_urls
api_urls += schedule_urls
api_urls += storage_urls
2020-01-30 14:47:36 +01:00
urlpatterns = [
path("api/browser/", include("rest_framework.urls", namespace="rest_framework")),
path("api/v2/", include(api_urls)),
path(
"api/v2/schema",
SpectacularAPIView.as_view(),
name="schema",
),
2021-10-16 20:34:03 +02:00
path(
"api/v2/schema/swagger-ui",
2021-10-16 20:34:03 +02:00
SpectacularSwaggerView.as_view(url_name="schema"),
name="swagger-ui",
),
2020-01-30 14:47:36 +01:00
]