mirror of
https://github.com/Redume/Kekkai-web.git
synced 2025-02-23 18:13:11 +03:00
git init
This commit is contained in:
commit
4e4f913477
12 changed files with 811 additions and 0 deletions
14
main.py
Normal file
14
main.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from fastapi.staticfiles import StaticFiles
|
||||
from starlette.responses import FileResponse
|
||||
from fastapi import FastAPI
|
||||
|
||||
from src.routes import index
|
||||
|
||||
app = FastAPI()
|
||||
app.include_router(index.router)
|
||||
app.mount('/static/', StaticFiles(directory='./src/web/static/'))
|
||||
|
||||
|
||||
@app.exception_handler(404)
|
||||
async def not_found(req, __):
|
||||
return FileResponse('./src/web/errors/404.html')
|
Loading…
Add table
Reference in a new issue