diff options
Diffstat (limited to 'cmd/vpnweb/vpnweb.go')
-rw-r--r-- | cmd/vpnweb/vpnweb.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/vpnweb/vpnweb.go b/cmd/vpnweb/vpnweb.go index 2305d98..ff25e09 100644 --- a/cmd/vpnweb/vpnweb.go +++ b/cmd/vpnweb/vpnweb.go @@ -21,11 +21,11 @@ func main() { /* protected routes */ /* TODO ---- - http.HandleFunc("/3/auth", auth.AuthMiddleware(opts.Auth)) http.HandleFunc("/3/refresh-token", auth.RefreshAuthMiddleware(opts.Auth)) */ - http.Handle("/3/cert", auth.AuthMiddleware(opts.Auth, ch)) + http.Handle("/3/cert", auth.RestrictedMiddleware(opts.Auth, ch)) + http.Handle("/3/auth", auth.Authenticator(opts.Auth)) /* static files */ |