From 4d2e91e48c1fef398bc9f92ceec9c1f9d46179d1 Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Sat, 28 Jan 2023 20:54:12 -0300 Subject: [PATCH] fix controllers used in OS routes --- backend/routes/os.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/routes/os.go b/backend/routes/os.go index af86767..8d0f5f1 100644 --- a/backend/routes/os.go +++ b/backend/routes/os.go @@ -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)) }