mirror of
https://github.com/hay-kot/mealie.git
synced 2025-07-11 07:37:14 -07:00
Fix Users API Token API path (#526)
* Fix Users API Token API path * Change CRLF to LF * Fix route generation when route contains /api
This commit is contained in:
parent
f5ede73eb6
commit
db3c8f7b4b
3 changed files with 5 additions and 5 deletions
|
@ -46,7 +46,7 @@ class AppRoutes:
|
|||
self.themes = "/api/themes"
|
||||
self.themes_create = "/api/themes/create"
|
||||
self.users = "/api/users"
|
||||
self.users_api_tokens = "/api/users-tokens"
|
||||
self.users_api_tokens = "/api/users/api-tokens"
|
||||
self.users_self = "/api/users/self"
|
||||
self.users_sign_ups = "/api/users/sign-ups"
|
||||
self.utils_download = "/api/utils/download"
|
||||
|
@ -127,7 +127,7 @@ class AppRoutes:
|
|||
return f"{self.prefix}/themes/{id}"
|
||||
|
||||
def users_api_tokens_token_id(self, token_id):
|
||||
return f"{self.prefix}/users-tokens/{token_id}"
|
||||
return f"{self.prefix}/users/api-tokens/{token_id}"
|
||||
|
||||
def users_id(self, id):
|
||||
return f"{self.prefix}/users/{id}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue