diff --git a/backend/cmd/main.go b/backend/cmd/main.go index 98fcc96..48d9a32 100644 --- a/backend/cmd/main.go +++ b/backend/cmd/main.go @@ -16,7 +16,6 @@ func handler(w http.ResponseWriter, r *http.Request) { } func main() { - println("Starting server...") database.DbConnect() // Mounting the handler @@ -25,6 +24,9 @@ func main() { http.HandleFunc("/hello", handler) // Start the server on port 8080 + println("Currently listening on http://localhost:8080") + println("Visit http://localhost:8080/hello to see the handler in action") + printlm("Press Ctrl+C to stop the server") err := http.ListenAndServe(":8080", nil) if err != nil { panic(err)