MonkeyBusiness/modules/iidx/iidx32streaming.py
2024-10-10 06:24:34 +00:00

29 lines
946 B
Python

import config
from fastapi import APIRouter, Request, Response
from core_common import core_process_request, core_prepare_response, E
router = APIRouter(prefix="/local", tags=["local"])
router.model_whitelist = ["LDJ"]
@router.post("/{gameinfo}/IIDX32streaming/common")
async def iidx32streaming_common(request: Request):
request_info = await core_process_request(request)
response = E.response(E.IIDX32streaming())
response_body, response_headers = await core_prepare_response(request, response)
return Response(content=response_body, headers=response_headers)
@router.post("/{gameinfo}/IIDX32streaming/getcm")
async def iidx32streaming_getcm(request: Request):
request_info = await core_process_request(request)
response = E.response(E.IIDX32streaming())
response_body, response_headers = await core_prepare_response(request, response)
return Response(content=response_body, headers=response_headers)