package main import ( "net/http" oauth "imuslab.com/arozos/mod/auth/oauth2" ) func OAuthInit() { //OAuth test oAuthHandler := oauth.NewOauthHandler(authAgent, registerHandler) http.HandleFunc("/system/auth/oauth/login", oAuthHandler.HandleLogin) http.HandleFunc("/system/auth/oauth/authorize", oAuthHandler.HandleAuthorize) http.HandleFunc("/system/auth/oauth/checkoauth", oAuthHandler.CheckOAuth) }