File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -4,16 +4,16 @@ type CreateSubmissionRequest struct {
44 Title string `json:"title" validate:"required"`
55 Description string `json:"description" validate:"required"`
66 Track string `json:"track" validate:"required"`
7- GithubLink string `json:"github_link" validate:"required,url" `
8- FigmaLink string `json:"figma_link" validate:"required,url" `
9- OtherLink string `json:"other_link" validate:"omitempty,url" `
7+ GithubLink string `json:"github_link"`
8+ FigmaLink string `json:"figma_link`
9+ OtherLink string `json:"other_link"`
1010}
1111
1212type UpdateSubmissionRequest struct {
1313 Title string `json:"title" validate:"required"`
1414 Description string `json:"description" validate:"required"`
1515 Track string `json:"track" validate:"required"`
16- GithubLink string `json:"github_link" validate:"required,url" `
17- FigmaLink string `json:"figma_link" validate:"required,url" `
18- OtherLink string `json:"other_link" validate:"omitempty,url" `
16+ GithubLink string `json:"github_link"`
17+ FigmaLink string `json:"figma_link"`
18+ OtherLink string `json:"other_link"`
1919}
Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ package router
22
33import (
44 "github.com/CodeChefVIT/devsoc-be-24/pkg/controller"
5- // "github.com/CodeChefVIT/devsoc-be-24/pkg/middleware"
5+ "github.com/CodeChefVIT/devsoc-be-24/pkg/middleware"
66 "github.com/labstack/echo/v4"
77)
88
99func AdminRoutes (incomingRoutes * echo.Group ) {
1010 admin := incomingRoutes .Group ("/admin" )
11- // admin.Use(middleware.JWTMiddleware())
12- // admin.Use(middleware.CheckAdmin)
11+ admin .Use (middleware .JWTMiddleware ())
12+ admin .Use (middleware .CheckAdmin )
1313
1414 admin .GET ("/users" , controller .GetAllUsers )
1515 admin .GET ("/user/:email" , controller .GetUsersByEmail )
You can’t perform that action at this time.
0 commit comments