Projekt

Obecné

Profil

Stáhnout (1.32 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 sql_app.api.headdevices_web import head_device_web
16
from sql_app.api.users_web import users
17
from fastapi import FastAPI
18

    
19

    
20
app = FastAPI()
21

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

    
29
# including routers for endpoints called from web
30
app.include_router(device_web)
31
app.include_router(licenses_web)
32
app.include_router(pcs_web)
33
app.include_router(teams_web)
34
app.include_router(usblogs_web)
35
app.include_router(ldlogs_web)
36
app.include_router(body_device_web)
37
app.include_router(users)
38
app.include_router(head_device_web)
39
app.include_router(auth)
40

    
41
'''
42
if __name__ == "__main__":
43
    uvicorn.run(app, host="192.168.0.22", port=8000)
44
'''
(4-4/6)