mirror of
https://github.com/thomiceli/opengist.git
synced 2025-07-10 09:51:51 +02:00
Add topics for Gists (#413)
This commit is contained in:
@ -405,3 +405,11 @@ func gistNewPushSoftInit(next Handler) Handler {
|
||||
return next(ctx)
|
||||
}
|
||||
}
|
||||
func setAllGistsMode(mode string) Middleware {
|
||||
return func(next Handler) Handler {
|
||||
return func(ctx *context.Context) error {
|
||||
ctx.SetData("mode", mode)
|
||||
return next(ctx)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user