control: Generalize cookie and csrf handling
This commit is contained in:
parent
eb17dbe33f
commit
34bdb3cf24
15 changed files with 122 additions and 44 deletions
|
|
@ -32,7 +32,12 @@ var (
|
|||
_ component.Cronable = (*Resolver)(nil)
|
||||
)
|
||||
|
||||
func (resolver *Resolver) Routes() []string { return []string{"/go/", "/wisski/get/"} }
|
||||
func (resolver *Resolver) Routes() component.Routes {
|
||||
return component.Routes{
|
||||
Paths: []string{"/go/", "/wisski/get/"},
|
||||
CSRF: false,
|
||||
}
|
||||
}
|
||||
|
||||
func (resolver *Resolver) HandleRoute(ctx context.Context, route string) (http.Handler, error) {
|
||||
logger := zerolog.Ctx(ctx)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue