1
|
import uvicorn
|
2
|
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
|
from fastapi import FastAPI
|
8
|
|
9
|
|
10
|
app = FastAPI(root_path="/api/v1")
|
11
|
app.include_router(device)
|
12
|
app.include_router(licenses)
|
13
|
app.include_router(pcs)
|
14
|
app.include_router(usblogs)
|
15
|
app.include_router(teams)
|
16
|
|
17
|
'''
|
18
|
if __name__ == "__main__":
|
19
|
uvicorn.run(app, host="192.168.0.22", port=8000)
|
20
|
'''
|