udemy-go-web-2/cmd/web/middleware.go

10 lines
125 B
Go

package main
import (
"net/http"
)
func SessionLoad(next http.Handler) http.Handler {
return session.LoadAndSave(next)
}