Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 4911f0ea

Přidáno uživatelem Matěj Zeman před asi 2 roky(ů)

re #9577 Api code documentation.

Zobrazit rozdíly:

server/sql_app/main.py
13 13

  
14 14

  
15 15
app = FastAPI()
16

  
17
# including routers for endpoints used by clients
16 18
app.include_router(device)
17 19
app.include_router(licenses)
18 20
app.include_router(pcs)
19 21
app.include_router(usblogs)
20 22
app.include_router(teams)
21 23

  
24
# including routers for endpoints called from web
22 25
app.include_router(device_web)
23 26
app.include_router(licenses_web)
24 27
app.include_router(pcs_web)
25 28
app.include_router(teams_web)
26 29
app.include_router(usblogs_web)
27 30

  
28
'''
31

  
29 32
if __name__ == "__main__":
30 33
    uvicorn.run(app, host="192.168.0.22", port=8000)
31
'''
34

  

Také k dispozici: Unified diff