fix controllers used in OS routes

This commit is contained in:
Chris Cromer 2023-01-28 20:54:12 -03:00 committed by Martin Araneda
parent 4d198eef62
commit 4d2e91e48c

View File

@ -8,9 +8,9 @@ import (
)
func OSRoutes(router *httprouter.Router) {
router.GET("/os", controllers.ListUsers)
router.GET("/os/:id", controllers.GetUser)
router.POST("/os", middlewares.Authenticate(controllers.CreateUser))
router.PATCH("/os/:id", middlewares.Authenticate(controllers.UpdateUser))
router.DELETE("/os/:id", middlewares.Authenticate(controllers.DeleteUser))
router.GET("/os", controllers.ListOS)
router.GET("/os/:id", controllers.GetOS)
router.POST("/os", middlewares.Authenticate(controllers.CreateOS))
router.PATCH("/os/:id", middlewares.Authenticate(controllers.UpdateOS))
router.DELETE("/os/:id", middlewares.Authenticate(controllers.DeleteOS))
}