Skip to content

Commit

Permalink
disable trailing slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokant committed Nov 21, 2023
1 parent f7712da commit 28d2dc9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,3 +326,4 @@

# Minutes that GEOAPI should cache views and settings
GEOAPI_CACHE_TIMEOUT = env.int("DJANGO_GEOAPI_CACHE_TIMEOUT", default=0)
APPEND_SLASH = False
26 changes: 13 additions & 13 deletions metadata_catalogue/datasets/geoapi/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@

urlpatterns = [
path("", views.landing_page, name="landing-page"),
path("openapi/", views.openapi, name="openapi"),
path("conformance/", views.conformance, name="conformance"),
path("collections/", views.collections, name="collections"),
path("openapi", views.openapi, name="openapi"),
path("conformance", views.conformance, name="conformance"),
path("collections", views.collections, name="collections"),
path(
"collections/<str:collection_id>",
views.collections,
name="collection-detail",
),
path(
"collections/<str:collection_id>/queryables/",
"collections/<str:collection_id>/queryables",
views.collection_queryables,
name="collection-queryables",
),
path(
"collections/<str:collection_id>/items/",
"collections/<str:collection_id>/items",
views.collection_items,
name="collection-items",
),
Expand All @@ -32,17 +32,17 @@
name="collection-item",
),
path(
"collections/<str:collection_id>/coverage/",
"collections/<str:collection_id>/coverage",
views.collection_coverage,
name="collection-coverage",
),
path(
"collections/<str:collection_id>/coverage/domainset/", # noqa
"collections/<str:collection_id>/coverage/domainset", # noqa
views.collection_coverage_domainset,
name="collection-coverage-domainset",
),
path(
"collections/<str:collection_id>/coverage/rangetype/", # noqa
"collections/<str:collection_id>/coverage/rangetype", # noqa
views.collection_coverage_rangetype,
name="collection-coverage-rangetype",
),
Expand All @@ -57,7 +57,7 @@
name="collection-style-map",
),
path(
"collections/<str:collection_id>/tiles/",
"collections/<str:collection_id>/tiles",
views.collection_tiles,
name="collection-tiles",
),
Expand Down Expand Up @@ -137,12 +137,12 @@
views.get_collection_edr_query,
name="collection-edr-instance-corridor",
),
path("processes/", views.processes, name="processes"),
path("processes", views.processes, name="processes"),
path("processes/<str:process_id>", views.processes, name="process-detail"),
path("jobs/", views.jobs, name="jobs"),
path("jobs/<str:job_id>", views.jobs, name="job"),
path(
"jobs/<str:job_id>/results/",
"jobs/<str:job_id>/results",
views.job_results,
name="job-results",
),
Expand All @@ -151,9 +151,9 @@
views.job_results_resource,
name="job-results-resource",
),
path("stac/", views.stac_catalog_root, name="stac-catalog-root"),
path("stac", views.stac_catalog_root, name="stac-catalog-root"),
path("stac/<str:path>", views.stac_catalog_path, name="stac-catalog-path"),
path("stac/search/", views.stac_catalog_search, name="stac-catalog-search"),
path("stac/search", views.stac_catalog_search, name="stac-catalog-search"),
]

# Add static URLs to serve pygeoapi statics
Expand Down

0 comments on commit 28d2dc9

Please sign in to comment.