Documentation ¶
Index ¶
- Variables
- func AccessControl() negroni.Handler
- func AuthMiddleware() negroni.Handler
- func Cors(origin []string, headers []string) negroni.Handler
- func GetApp() *negroni.Negroni
- func HandlerSet() negroni.Handler
- func JwtMiddleware(key string, algo string) negroni.Handler
- func MatchURL(url string) (match bool, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MiddlewareStack on pREST MiddlewareStack []negroni.Handler // BaseStack Middlewares BaseStack = []negroni.Handler{ negroni.Handler(negroni.NewRecovery()), negroni.Handler(negroni.NewLogger()), HandlerSet(), } )
Functions ¶
func AccessControl ¶
AccessControl is a middleware to handle permissions on tables in pREST
func AuthMiddleware ¶ added in v1.0.10
AuthMiddleware handle request token validation
func JwtMiddleware ¶
JwtMiddleware check if actual request have JWT
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.