16 lines
No EOL
362 B
Python
16 lines
No EOL
362 B
Python
import fastapi
|
|
import uvicorn
|
|
|
|
from source import meta
|
|
|
|
|
|
class Application(fastapi.FastAPI):
|
|
def __init__(self):
|
|
super().__init__(
|
|
title=meta.name,
|
|
description=meta.description,
|
|
redoc_url=None,
|
|
)
|
|
|
|
def serve(self, host: str = "0.0.0.0", port: int = 8080):
|
|
uvicorn.run(self, host=host, port=port) |