Skip to content

Commit

Permalink
initial checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenlawton committed Nov 14, 2024
1 parent 98dc931 commit 7996212
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ func main() {
http.HandleFunc("/api/oauth/google", handleOAuthGoogle)
http.HandleFunc("/api/oauth/facebook", handleOAuthFacebook)

http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Println("Received a request to root path")
w.WriteHeader(http.StatusOK)
w.Write([]byte("Hello, this is the Go server response."))
})

c := cors.New(cors.Options{
AllowedOrigins: []string{corsOrigin},
AllowedMethods: []string{"GET", "POST", "OPTIONS"},
Expand Down

0 comments on commit 7996212

Please sign in to comment.