Added some test endpoints and server configuration
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user