File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 1
- import uvicorn
2
-
3
1
from fastapi import Depends , FastAPI , Request , status
4
2
from fastapi .openapi .docs import (
5
3
get_swagger_ui_html ,
@@ -67,6 +65,7 @@ def create_tables(engine, psql_environment):
67
65
google_connect ,
68
66
invitation ,
69
67
joke ,
68
+ keyboard_shortcuts ,
70
69
login ,
71
70
logout ,
72
71
profile ,
@@ -77,7 +76,6 @@ def create_tables(engine, psql_environment):
77
76
weekview ,
78
77
weight ,
79
78
whatsapp ,
80
- keyboard_shortcuts ,
81
79
)
82
80
83
81
json_data_loader .load_to_database (next (get_db ()))
@@ -117,6 +115,7 @@ async def swagger_ui_redirect():
117
115
google_connect .router ,
118
116
invitation .router ,
119
117
joke .router ,
118
+ keyboard_shortcuts .router ,
120
119
login .router ,
121
120
logout .router ,
122
121
profile .router ,
@@ -128,7 +127,6 @@ async def swagger_ui_redirect():
128
127
weekview .router ,
129
128
weight .router ,
130
129
whatsapp .router ,
131
- keyboard_shortcuts .router ,
132
130
]
133
131
134
132
for router in routers_to_include :
@@ -151,6 +149,3 @@ async def home(request: Request, db: Session = Depends(get_db)):
151
149
152
150
153
151
custom_openapi (app )
154
-
155
- if __name__ == "__main__" :
156
- uvicorn .run (app , host = "127.0.0.1" , port = 8000 )
You can’t perform that action at this time.
0 commit comments