13 lines
259 B
Python
13 lines
259 B
Python
from fastapi import FastAPI
|
|
|
|
from handler.exception import install as exception_install
|
|
from lifespan import lifespan
|
|
|
|
|
|
app = FastAPI(lifespan=lifespan)
|
|
exception_install(app)
|
|
|
|
if __name__ == "__main__":
|
|
import uvicorn
|
|
|
|
uvicorn.run(app=app, port=8000) |