File tree Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -41,16 +41,4 @@ async def root():
41
41
async def calculator (request : RequestSchema ):
42
42
return controller .handle_sum (request )
43
43
44
-
45
- """ # Endpoint only for DB conection testing.
46
- @app.post("/device-plant")
47
- async def add_new_device_plant(req: Request,
48
- device_plant: DevicePlantSchema = Body(...)):
49
- try:
50
- req.app.database.add_new(DevicePlant.from_pydantic(device_plant))
51
- return req.app.database.find_device_plant(device_plant.id_device)
52
- except Exception as e:
53
- req.app.database.rollback()
54
- raise e """
55
-
56
44
app .include_router (api_router )
Original file line number Diff line number Diff line change 4
4
5
5
api_router = APIRouter ()
6
6
7
- api_router .include_router (device_plant , tags = ["DevicePlant" ], prefix = "/device-plant" )
8
- api_router .include_router (measurement , tags = ["Measurement" ], prefix = "/measurement" )
7
+ api_router .include_router (device_plant , tags = ["DevicePlant" ],
8
+ prefix = "/measurements/device-plant" )
9
+ api_router .include_router (measurement , tags = ["Measurement" ], prefix = "/measurements" )
You can’t perform that action at this time.
0 commit comments