abhijitkumarjha88192 commited on
Commit
7acbf72
1 Parent(s): 6020013

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -0
main.py CHANGED
@@ -1,4 +1,5 @@
1
  from typing import Optional
 
2
  from fastapi import FastAPI, APIRouter, Query
3
  #from .finit import api_router, app
4
  from myschemas import MyDataModel, MyDataSearchResults, CreateMyDataModelEntity
@@ -109,6 +110,7 @@ def delete_data(*, data_id: int) -> dict:
109
 
110
  return {"datas":myDataList}
111
 
 
112
 
113
  # if __name__ == "__main__":
114
  # # Use this for debugging purposes only
 
1
  from typing import Optional
2
+ import uvicorn
3
  from fastapi import FastAPI, APIRouter, Query
4
  #from .finit import api_router, app
5
  from myschemas import MyDataModel, MyDataSearchResults, CreateMyDataModelEntity
 
110
 
111
  return {"datas":myDataList}
112
 
113
+ app.include_router(api_router)
114
 
115
  # if __name__ == "__main__":
116
  # # Use this for debugging purposes only