diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2023-04-23 22:44:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-23 16:44:05 -0400 |
commit | 55a600fa4130b2708464be1c024c22ff46e6d4c0 (patch) | |
tree | 16c10ac2d7cce7a157b4c6a14df1e7e7620c774a /routers/api | |
parent | b2248d25534029d4292c126fdde94bc8f84ea2c1 (diff) | |
download | gitea-55a600fa4130b2708464be1c024c22ff46e6d4c0.tar.gz gitea-55a600fa4130b2708464be1c024c22ff46e6d4c0.zip |
Move code from module to service (#24287)
The code should not be in `modules/` but `services/`.
Reference:
https://github.com/go-gitea/gitea/pull/24257#discussion_r1174578230
Diffstat (limited to 'routers/api')
-rw-r--r-- | routers/api/v1/api.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 48311b3eee..ad68a33d6b 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -689,7 +689,7 @@ func Routes(ctx gocontext.Context) *web.Route { // Get user from session if logged in. m.Use(auth.APIAuth(group)) - m.Use(context.ToggleAPI(&context.ToggleOptions{ + m.Use(auth.VerifyAuthWithOptionsAPI(&auth.VerifyOptions{ SignInRequired: setting.Service.RequireSignInView, })) |