mirror of
https://github.com/drmext/MonkeyBusiness.git
synced 2024-11-14 10:37:38 +01:00
16 lines
535 B
Python
16 lines
535 B
Python
from fastapi import APIRouter, Request, Response
|
|
|
|
from core_common import core_process_request, core_prepare_response, E
|
|
|
|
router = APIRouter(prefix="/core", tags=["package2"])
|
|
|
|
|
|
@router.post("/{gameinfo}/package2/list")
|
|
async def package2_list(request: Request):
|
|
request_info = await core_process_request(request)
|
|
|
|
response = E.response(E.package2(expire=1200, status=0))
|
|
|
|
response_body, response_headers = await core_prepare_response(request, response)
|
|
return Response(content=response_body, headers=response_headers)
|