2018-07-07 21:09:19 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.xdrm.io/go/aicra/middleware"
|
|
|
|
"net/http"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Authentication middleware
|
2018-07-07 21:35:29 +00:00
|
|
|
func Inspect(req http.Request, scope *middleware.Scope) {
|
|
|
|
*scope = append(*scope, "admin")
|
2018-07-07 21:09:19 +00:00
|
|
|
}
|