diff options
author | 2025-03-02 14:51:10 +0100 | |
---|---|---|
committer | 2025-03-02 14:51:10 +0100 | |
commit | 72e8f43fa30253589197813e477e67d28549a8bb (patch) | |
tree | d828c8b7f572b60dcd48bc688957e3ba3a615d5e /pydis_site/apps/resources/urls.py | |
parent | Merge pull request #1444 from kkrypt0nn/patch-heroku-vps-guide (diff) | |
parent | Add endpoint to fetch filters in JSON format (diff) |
Merge pull request #1166 from python-discord/resource-filter-fetch
Add endpoint to fetch filters in JSON format
Diffstat (limited to 'pydis_site/apps/resources/urls.py')
-rw-r--r-- | pydis_site/apps/resources/urls.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pydis_site/apps/resources/urls.py b/pydis_site/apps/resources/urls.py index cb33a9d7..3a10d108 100644 --- a/pydis_site/apps/resources/urls.py +++ b/pydis_site/apps/resources/urls.py @@ -1,11 +1,12 @@ from django_distill import distill_path -from pydis_site.apps.resources.views import ResourceView +from pydis_site.apps.resources.views import ResourceView, ResourceFilterView app_name = "resources" urlpatterns = [ # Using `distill_path` instead of `path` allows this to be available # in static preview builds. distill_path("", ResourceView.as_view(), name="index"), + distill_path("filters", ResourceFilterView.as_view(), name="filters"), distill_path("<resource_type>/", ResourceView.as_view(), name="index"), ] |