Skip to content

Commit

Permalink
Remove pagemappings (legacy RAP redirect fix) middleware (#171)
Browse files Browse the repository at this point in the history
Co-authored-by: Josh <[email protected]>
  • Loading branch information
cmyui and Josh authored Oct 27, 2024
1 parent 575e073 commit 8b84721
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 90 deletions.
88 changes: 0 additions & 88 deletions app/middleware/pagemappings/pagemappings.go

This file was deleted.

2 changes: 0 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import (
registerHandlers "github.com/osuAkatsuki/hanayo/app/handlers/sessions/register"
logging "github.com/osuAkatsuki/hanayo/app/logging"
middleware "github.com/osuAkatsuki/hanayo/app/middleware"
"github.com/osuAkatsuki/hanayo/app/middleware/pagemappings"
msg "github.com/osuAkatsuki/hanayo/app/models/messages"
sessionsmanager "github.com/osuAkatsuki/hanayo/app/sessions"
"github.com/osuAkatsuki/hanayo/app/states/services"
Expand Down Expand Up @@ -182,7 +181,6 @@ func generateEngine() *gin.Engine {
// Still use the built-in recovery middleware that is called with default
gin.Recovery(),
gzip.Gzip(gzip.DefaultCompression),
pagemappings.CheckRedirect,
sessions.Sessions("session", store),
sessionsmanager.SessionInitializer(),
middleware.RateLimiter(false),
Expand Down

0 comments on commit 8b84721

Please sign in to comment.