mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix: methods incorrect type and update deprecated targets (#23935)
This commit is contained in:
committed by
GitHub
parent
841726d432
commit
694f93326d
@@ -32,7 +32,7 @@ class CurrentUserRestApi(BaseSupersetApi):
|
||||
openapi_spec_tag = "Current User"
|
||||
openapi_spec_component_schemas = (UserResponseSchema,)
|
||||
|
||||
@expose("/", methods=["GET"])
|
||||
@expose("/", methods=("GET",))
|
||||
@safe
|
||||
def get_me(self) -> Response:
|
||||
"""Get the user object corresponding to the agent making the request
|
||||
@@ -62,7 +62,7 @@ class CurrentUserRestApi(BaseSupersetApi):
|
||||
|
||||
return self.response(200, result=user_response_schema.dump(g.user))
|
||||
|
||||
@expose("/roles/", methods=["GET"])
|
||||
@expose("/roles/", methods=("GET",))
|
||||
@safe
|
||||
def get_my_roles(self) -> Response:
|
||||
"""Get the user roles corresponding to the agent making the request
|
||||
|
||||
Reference in New Issue
Block a user