Skip to content

Commit

Permalink
API: refactoring
Browse files Browse the repository at this point in the history
Signed-off-by: Alex <[email protected]>

#744
  • Loading branch information
agmes4 committed Sep 29, 2024
1 parent 06b0d7b commit 55de9fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/api/v0/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ def get(self, ipv4: IPv4Address | IPv6Address) -> ResponseReturnValue:

api.add_resource(UserByIPResource, '/user/from-ip')


class MPSKSClientsResource(Resource):
def get(self, user_id: int) -> ResponseReturnValue:
user = get_user_or_404(user_id)
Expand All @@ -361,6 +362,7 @@ def get(self, user_id: int) -> ResponseReturnValue:

api.add_resource(MPSKSClientsResource, "/user/<int:user_id>/get-mpsks")


class MPSKSClientAddResource(Resource):
@use_kwargs(
{
Expand Down

0 comments on commit 55de9fc

Please sign in to comment.