Skip to content

Commit 3ada262

Browse files
committed
Remove AuthMiddleware implementation and its usage in users profile route
1 parent 2a96aba commit 3ada262

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

api-v1/middleware/middleware.go

-13
This file was deleted.

api-v1/routes/users_api/routes.go

-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import (
44
"net/http"
55

66
"github.com/danielgtaylor/huma/v2"
7-
8-
"api-go/middleware"
97
)
108

119
func Register(api huma.API) {
@@ -15,7 +13,6 @@ func Register(api huma.API) {
1513
Method: http.MethodGet,
1614
Path: "/users/profile",
1715
Tags: []string{"users"},
18-
Middlewares: huma.Middlewares{middleware.AuthMiddleware},
1916
}, ProfileGetAPI)
2017

2118
huma.Register(api, huma.Operation{

0 commit comments

Comments
 (0)