-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from geosolutions-it/subsite_exclusive
Add the exclusive keyword
- Loading branch information
Showing
9 changed files
with
358 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from subsites import views | ||
from dynamic_rest import routers | ||
from django.conf import settings | ||
|
||
core_api_router = routers.DynamicRouter() | ||
|
||
|
||
core_api_router.register( | ||
r"resources", views.OverrideResourceBaseViewSet, "base-resources" | ||
) | ||
|
||
if getattr(settings, "SUBSITE_HIDE_EXCLUSIVE_FROM_SPECIFIC_API", False): | ||
core_api_router.register(r"documents", views.OverrideDocumentViewSet, "documents") | ||
core_api_router.register(r"datasets", views.OverrideDatasetViewSet, "datasets") | ||
core_api_router.register(r"maps", views.OverrideMapViewSet, "maps") | ||
core_api_router.register(r"geoapps", views.OverrideGeoAppViewSet, "geoapps") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.