Commit d09dd48d authored by sbl1996@126.com's avatar sbl1996@126.com

server return OK

parent f6ad8563
......@@ -8,6 +8,7 @@ import uuid
from contextlib import asynccontextmanager
from fastapi import FastAPI, Path
from fastapi.responses import PlainTextResponse
from fastapi.middleware.cors import CORSMiddleware
from pydantic import Field
from pydantic_settings import BaseSettings
......@@ -83,6 +84,11 @@ if settings.enable_cors:
def new_state():
return PredictState()
@app.get('/', status_code=200, response_class=PlainTextResponse)
async def root():
return "OK"
@app.post('/v0/duels', response_model=DuelCreateResponse)
async def create_duel() -> DuelCreateResponse:
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment