mirror of
https://github.com/ForFarmTeam/ForFarm.git
synced 2025-12-19 14:04:08 +01:00
feat: fix InventoryRoutes to not use UseMiddleware
This commit is contained in:
parent
c8b824d01f
commit
0c2f026a5f
@ -83,6 +83,7 @@ func (a *api) Routes() *chi.Mux {
|
|||||||
a.registerCropRoutes(r, api)
|
a.registerCropRoutes(r, api)
|
||||||
a.registerPlantRoutes(r, api)
|
a.registerPlantRoutes(r, api)
|
||||||
a.registerOauthRoutes(r, api)
|
a.registerOauthRoutes(r, api)
|
||||||
|
a.registerInventoryRoutes(r, api)
|
||||||
})
|
})
|
||||||
|
|
||||||
router.Group(func(r chi.Router) {
|
router.Group(func(r chi.Router) {
|
||||||
@ -90,7 +91,6 @@ func (a *api) Routes() *chi.Mux {
|
|||||||
a.registerHelloRoutes(r, api)
|
a.registerHelloRoutes(r, api)
|
||||||
a.registerFarmRoutes(r, api)
|
a.registerFarmRoutes(r, api)
|
||||||
a.registerUserRoutes(r, api)
|
a.registerUserRoutes(r, api)
|
||||||
a.registerInventoryRoutes(r, api)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
return router
|
return router
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user