mirror of
https://github.com/Uttkarsh-raj/Plannerly.git
synced 2025-11-23 21:54:39 +02:00
13 lines
309 B
Go
13 lines
309 B
Go
|
|
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())
|
||
|
|
}
|