Projekt

Obecné

Profil

Stáhnout (1.16 KB) Statistiky
| Větev: | Tag: | Revize:
1
import uvicorn
2
from sql_app.api.devices import device
3
from sql_app.api.devices_web import device_web
4
from sql_app.api.licenses import licenses
5
from sql_app.api.licenses_web import licenses_web
6
from sql_app.api.pcs import pcs
7
from sql_app.api.pcs_web import pcs_web
8
from sql_app.api.usb_logs import usblogs
9
from sql_app.api.usb_logs_web import usblogs_web
10
from sql_app.api.teams import teams
11
from sql_app.api.teams_web import teams_web
12
from sql_app.api.auth import auth
13
from sql_app.api.ld_logs_web import ldlogs_web
14
from sql_app.api.bodydevices_web import body_device_web
15
from fastapi import FastAPI
16

    
17

    
18
app = FastAPI()
19

    
20
# including routers for endpoints used by clients
21
app.include_router(device)
22
app.include_router(licenses)
23
app.include_router(pcs)
24
app.include_router(usblogs)
25
app.include_router(teams)
26

    
27
# including routers for endpoints called from web
28
app.include_router(device_web)
29
app.include_router(licenses_web)
30
app.include_router(pcs_web)
31
app.include_router(teams_web)
32
app.include_router(usblogs_web)
33
app.include_router(ldlogs_web)
34
app.include_router(body_device_web)
35
app.include_router(auth)
36

    
37
'''
38
if __name__ == "__main__":
39
    uvicorn.run(app, host="192.168.176.1", port=8000)
40
'''
(4-4/6)