Skip to content

Commit

Permalink
feat: Revert Add new url for roles master api keys (#3154) (#3214)
Browse files Browse the repository at this point in the history
  • Loading branch information
novakzaballa authored Dec 21, 2023
1 parent d770399 commit 22b8d9c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions api/organisations/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@
RoleEnvironmentPermissionsViewSet,
RoleOrganisationPermissionViewSet,
RoleProjectPermissionsViewSet,
RolesbyMasterAPIPrefixViewSet,
RolesByGroupViewSet,
RolesByUserViewSet,
RoleViewSet,
Expand All @@ -113,14 +112,11 @@
parent_router=organisations_router, parent_prefix=r"users", lookup="user"
)

nested_api_key_roles_routes = routers.NestedSimpleRouter(
parent_router=organisations_router,
lookup="api_key",

nested_group_roles_routes = routers.NestedSimpleRouter(
parent_router=organisations_router, parent_prefix=r"groups", lookup="group"
)

organisations_router.register("roles", RoleViewSet, basename="organisation-roles")
nested_roles_router = routers.NestedSimpleRouter(
organisations_router, r"roles", lookup="role"
)
Expand All @@ -129,10 +125,6 @@
viewset=RolesByUserViewSet,
basename="role-users",
)
nested_api_key_roles_routes.register(
prefix="roles",
viewset=RolesbyMasterAPIPrefixViewSet,
basename="role-api-keys",
nested_group_roles_routes.register(
prefix="roles",
viewset=RolesByGroupViewSet,
Expand Down Expand Up @@ -163,7 +155,6 @@
url(r"^", include(organisations_router.urls)),
url(r"^", include(nested_roles_router.urls)),
url(r"^", include(nested_user_roles_routes.urls)),
url(r"^", include(nested_api_key_roles_routes.urls)),
url(r"^", include(nested_group_roles_routes.urls)),
]
)

3 comments on commit 22b8d9c

@vercel
Copy link

@vercel vercel bot commented on 22b8d9c Dec 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 22b8d9c Dec 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 22b8d9c Dec 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./docs

docs-git-main-flagsmith.vercel.app
docs-flagsmith.vercel.app
docs.flagsmith.com
docs.bullet-train.io

Please sign in to comment.