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

20 lines
752 B
Go
Raw Permalink 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-28 17:55:58 +05:30
incomingRoutes.PATCH("/update/:id", controllers.UpdateTask())
2023-10-27 22:34:57 +05:30
incomingRoutes.GET("/getTasks", controllers.GetAllTask())
incomingRoutes.GET("/getTask/:id", controllers.GetTaskById())
2023-11-01 20:33:24 +05:30
incomingRoutes.GET("/tasks/urgent", controllers.GetUrgentTasks())
incomingRoutes.GET("/tasks/regular", controllers.GetRegularTasks())
2023-10-28 18:12:39 +05:30
incomingRoutes.DELETE("/delete/:id", controllers.DeleteTask())
2023-11-11 16:10:02 +05:30
incomingRoutes.POST("/search", controllers.SearchTask())
2023-10-26 19:39:14 +05:30
}