Skip to content

Commit

Permalink
make "/attachments/{uuid}" use CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang committed Dec 22, 2023
1 parent eedb711 commit e6741b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ func registerRoutes(m *web.Route) {

m.Group("", func() {
m.Get("/{username}", user.UsernameSubRoute)
m.Get("/attachments/{uuid}", repo.GetAttachment)
m.Methods("GET, OPTIONS", "/attachments/{uuid}", optionsCorsHandler(), repo.GetAttachment)
}, ignSignIn)

m.Post("/{username}", reqSignIn, context_service.UserAssignmentWeb(), user.Action)
Expand Down

0 comments on commit e6741b9

Please sign in to comment.