alai-server/backend/routes/auth.go

14 lines
364 B
Go
Raw Permalink Normal View History

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 AuthRoutes(router *httprouter.Router) {
router.POST("/login", controllers.Login)
router.GET("/auth", middlewares.Authenticate(controllers.AuthenticateUser))
}