Last active
February 6, 2022 10:37
-
-
Save muhammadqazi/d010d73875d27099cbdc5610b3698c44 to your computer and use it in GitHub Desktop.
Go-Authentication
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"net/http" | |
EmailVerification "GO/routes/Auth/EmailVerification" | |
ForgotPass "GO/routes/Auth/ForgotPass" | |
GoogleAuth "GO/routes/Auth/GoogleAuthenticator" | |
Signin "GO/routes/Auth/Signin" | |
Signup "GO/routes/Auth/Signup" | |
) | |
func main() { | |
http.HandleFunc("/signup", Signup.HandleSignup) | |
http.HandleFunc("/signin", Signin.HandleSignin) | |
http.HandleFunc("/emailVerify", EmailVerification.HandleEmailVerification) | |
http.HandleFunc("/forgotPass", ForgotPass.HandleForgotPass) | |
http.HandleFunc("/codeAuth", ForgotPass.HandleCodeAuth) | |
http.HandleFunc("/newPass", ForgotPass.HandleNewPassword) | |
http.HandleFunc("/googleAuth", GoogleAuth.HandleGoogleAuthenticate) | |
http.HandleFunc("/googleAuthCode", GoogleAuth.HandleCodeAuth) | |
http.ListenAndServe(":8080", nil) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment