[Enhance] Game new/old API prefix list support

- Add some endpoints for old API prefixes to notify users to update the client; add support for multiple game prefixes
This commit is contained in:
Lost-MSth
2024-02-24 16:39:15 +08:00
parent 50369d1f23
commit b3bf55407f
4 changed files with 37 additions and 15 deletions

View File

@@ -12,7 +12,8 @@ class Config:
SONG_FILE_HASH_PRE_CALCULATE = True
GAME_API_PREFIX = '/samusugiru/26'
GAME_API_PREFIX = '/samusugiru/26' # str | list[str]
OLD_GAME_API_PREFIX = [] # str | list[str]
ALLOW_APPVERSION = [] # list[str]