cm: fix game server uris
This commit is contained in:
@ -45,13 +45,13 @@ class CardMakerBase:
|
|||||||
{
|
{
|
||||||
"modelKind": 0,
|
"modelKind": 0,
|
||||||
"type": 1,
|
"type": 1,
|
||||||
"titleUri": f"{uri}/{self._parse_int_ver(games_ver['chuni'])}/",
|
"titleUri": f"{uri}/{self._parse_int_ver(games_ver['chuni'])}/ChuniServlet/",
|
||||||
},
|
},
|
||||||
# maimai DX
|
# maimai DX
|
||||||
{
|
{
|
||||||
"modelKind": 1,
|
"modelKind": 1,
|
||||||
"type": 1,
|
"type": 1,
|
||||||
"titleUri": f"{uri}/{self._parse_int_ver(games_ver['maimai'])}/",
|
"titleUri": f"{uri}/{self._parse_int_ver(games_ver['maimai'])}/Maimai2Servlet/",
|
||||||
},
|
},
|
||||||
# ONGEKI
|
# ONGEKI
|
||||||
{
|
{
|
||||||
|
@ -72,6 +72,12 @@ class CardMakerServlet(BaseServlet):
|
|||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
def get_endpoint_matchers(self) -> Tuple[List[Tuple[str, str, Dict]], List[Tuple[str, str, Dict]]]:
|
||||||
|
return (
|
||||||
|
[],
|
||||||
|
[("render_POST", "/SDED/{version}/{endpoint}", {})]
|
||||||
|
)
|
||||||
|
|
||||||
def render_POST(self, request: Request, game_code: str, matchers: Dict) -> bytes:
|
def render_POST(self, request: Request, game_code: str, matchers: Dict) -> bytes:
|
||||||
version = int(matchers['version'])
|
version = int(matchers['version'])
|
||||||
endpoint = matchers['endpoint']
|
endpoint = matchers['endpoint']
|
||||||
|
Reference in New Issue
Block a user