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

10 lines
125 B
Go
Raw Normal View History

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