Added some test endpoints and server configuration

This commit is contained in:
Donkie
2023-04-01 16:46:19 +02:00
parent c9b4705b28
commit 35fdd23ec0
6 changed files with 112 additions and 7 deletions

View File

@@ -1,9 +1,13 @@
"""Main entrypoint to the server."""
import uvicorn
from fastapi import FastAPI
import spoolson.api.v1.router
app = FastAPI()
app.include_router(spoolson.api.v1.router.router)
app.mount("/api/v1", spoolson.api.v1.router.app)
if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=8000)