mirror of
https://github.com/drmext/MonkeyBusiness.git
synced 2024-11-30 18:24:33 +01:00
29 lines
946 B
Python
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)
|