Change web framework to Starlette, db versioning to alembic #93

Closed
Hay1tsme wants to merge 32 commits from starlette_cleanup into master
2 changed files with 5 additions and 4 deletions
Showing only changes of commit 07cbbcc377 - Show all commits

View File

@ -76,7 +76,7 @@ class IDACServlet(BaseServlet):
def get_routes(self) -> List[Route]:
return [
Route("/{version:int}/initiald/{category:str}/{endpoint:str}", self.render_POST, methods=["POST"]),
Route("/{version:int}/initiald-matching/{endpoint:str}", self.render_POST, methods=["POST"]),
Route("/{version:int}/initiald-matching/{endpoint:str}", self.render_matching, methods=["POST"]),
]
def get_allnet_info(

View File

@ -6,6 +6,7 @@ import json
import logging
from core.config import CoreConfig
from core.utils import Utils
from titles.idac.const import IDACConstants
from titles.idac.config import IDACConfig
from titles.idac.base import IDACBase
@ -108,10 +109,10 @@ class IDACSeason2(IDACBase):
version = headers["device_version"]
ver_str = version.replace(".", "")[:3]
if self.core_cfg.server.is_develop:
domain_api_game = f"http://{self.core_cfg.server.hostname}:{self.core_cfg.server.port}/{ver_str}/"
else:
if self.core_cfg.server.is_using_proxy:
domain_api_game = f"http://{self.core_cfg.server.hostname}/{ver_str}/"
else:
domain_api_game = f"http://{self.core_cfg.server.hostname}:{Utils.get_title_port(self.core_cfg)}/{ver_str}/"
return {
"status_code": "0",