voice-changer/server/restapi/MMVC_Rest_Hello.py

11 lines
247 B
Python
Raw Normal View History

2022-12-31 18:06:57 +09:00
from fastapi import APIRouter
2023-04-27 23:38:25 +09:00
2022-12-31 18:06:57 +09:00
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"}