alai-server/backend/routes/os.go

17 lines
539 B
Go
Raw Normal View History

2023-01-28 20:48:56 -03:00
package routes
import (
"git.cromer.cl/Proyecto-Titulo/alai-server/backend/controllers"
"git.cromer.cl/Proyecto-Titulo/alai-server/backend/middlewares"
"github.com/julienschmidt/httprouter"
)
func OSRoutes(router *httprouter.Router) {
2023-01-28 20:54:12 -03:00
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))
2023-01-28 20:48:56 -03:00
}