Renamed to Spoolman

Spoolson just didn't sound that good after all
This commit is contained in:
Donkie
2023-04-02 19:19:15 +02:00
parent c31c3dea42
commit 6fd9662c42
19 changed files with 24 additions and 24 deletions

21
spoolman/main.py Normal file
View File

@@ -0,0 +1,21 @@
"""Main entrypoint to the server."""
import uvicorn
from fastapi import FastAPI
from spoolman.api.v1.router import app as v1_app
from spoolman.database.database import setup_db
app = FastAPI(debug=True)
app.mount("/api/v1", v1_app)
@app.on_event("startup")
async def startup() -> None:
"""Run the service's startup sequence."""
await setup_db("sqlite+aiosqlite:///./sql_app.db")
if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=8000)