Projekt

Obecné

Profil

Stáhnout (493 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1 aba60b70 Matej Zeman
import uvicorn
2 ef87a1d2 Matej Zeman
from sql_app.api.devices import device
3
from sql_app.api.licenses import licenses
4
from sql_app.api.pcs import pcs
5
from sql_app.api.usb_logs import usblogs
6
from sql_app.api.teams import teams
7 6c1e92e3 Matej Zeman
from fastapi import FastAPI
8 aba60b70 Matej Zeman
9
10
app = FastAPI(root_path="/api/v1")
11 6c1e92e3 Matej Zeman
app.include_router(device)
12
app.include_router(licenses)
13
app.include_router(pcs)
14
app.include_router(usblogs)
15 99c92c11 Matej Zeman
app.include_router(teams)
16 aba60b70 Matej Zeman
17 8fd3d7e5 Matej Zeman
'''
18 aba60b70 Matej Zeman
if __name__ == "__main__":
19
    uvicorn.run(app, host="192.168.0.22", port=8000)
20 8fd3d7e5 Matej Zeman
'''