add a pairing endpoint

+ append / to folder paths
+ filter recently played by logged in user id
+ fix typo in login response
+ update track logger migration to add foreign key
This commit is contained in:
cwilvx
2024-06-09 16:14:09 +03:00
parent fcf1469428
commit b32d0a5743
8 changed files with 76 additions and 19 deletions
+8 -1
View File
@@ -84,7 +84,14 @@ app = create_api()
app.static_folder = get_home_res_path("client")
# INFO: Routes that don't need authentication
whitelisted_routes = {"/auth/login", "/auth/users", "/auth/logout", "/auth/refresh", "/docs"}
whitelisted_routes = {
"/auth/login",
"/auth/users",
"/auth/pair",
"/auth/logout",
"/auth/refresh",
"/docs",
}
blacklist_extensions = {".webp"}.union(getClientFilesExtensions())