1
0
mirror of https://github.com/Uttkarsh-raj/Plannerly.git synced 2025-11-23 21:54:39 +02:00
Files
Plannerly/Backend/routes/tasks_routes.go

16 lines
490 B
Go
Raw Normal View History

2023-10-26 19:39:14 +05:30
package routes
import (
"github.com/Uttkarsh-raj/To_Do_App/controllers"
"github.com/Uttkarsh-raj/To_Do_App/middleware"
"github.com/gin-gonic/gin"
)
func TaskRoutes(incomingRoutes *gin.Engine) {
incomingRoutes.Use(middleware.Authentication())
incomingRoutes.POST("/addTask", controllers.AddNewTask())
2023-10-27 22:34:57 +05:30
incomingRoutes.PATCH("/update", controllers.UpdateTask())
incomingRoutes.GET("/getTasks", controllers.GetAllTask())
incomingRoutes.GET("/getTask/:id", controllers.GetTaskById())
2023-10-26 19:39:14 +05:30
}