voice-changer/server/restapi/MMVC_Rest_Hello.py

11 lines
247 B
Python
Raw Normal View History

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