voice-changer/server/restapi/MMVC_Rest_Hello.py
2022-12-31 18:06:57 +09:00

14 lines
337 B
Python

from fastapi import APIRouter
from fastapi.encoders import jsonable_encoder
from fastapi.responses import JSONResponse
class MMVC_Rest_Hello:
def __init__(self):
self.router = APIRouter()
self.router.add_api_route("/api/hello", self.hello, methods=["GET"])
def hello(self):
return {"result": "Index"}