zhzluke96
update
d2b7e94
raw
history blame contribute delete
443 Bytes
from modules import config
from modules.api import utils as api_utils
from modules.api.Api import APIManager
def setup(app: APIManager):
@app.get("/v1/ping", response_model=api_utils.BaseResponse)
async def ping():
return api_utils.success_response("pong")
@app.get("/v1/versions", response_model=api_utils.BaseResponse)
async def get_versions():
return api_utils.success_response(config.versions.to_dict())