25 lines
446 B
Python
25 lines
446 B
Python
import uvicorn
|
|
|
|
from fastapi import FastAPI
|
|
|
|
from modules import example
|
|
from modules import voxy_import
|
|
|
|
app = FastAPI(title="ARinera Minecraft TUI Backend")
|
|
|
|
app.include_router(example.router, prefix="/api/v1")
|
|
app.include_router(voxy_import.router, prefix="/api/v1")
|
|
|
|
|
|
@app.get("/health")
|
|
async def health():
|
|
return {"status": "ok"}
|
|
|
|
|
|
def main():
|
|
uvicorn.run("main:app", reload=True, port=3131)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|