12 lines
192 B
Go
12 lines
192 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"git.xdrm.io/go/aicra/middleware"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
// Authentication middleware
|
||
|
func Inspect(req http.Request, scope middleware.Scope){
|
||
|
scope = append(scope, "user");
|
||
|
}
|