This commit is contained in:
teddy
2025-04-18 21:36:12 +07:00
parent 90270a2ab8
commit 2a67bb260f
5 changed files with 70 additions and 59 deletions

View File

@@ -3,7 +3,6 @@ package main
import (
"context"
"email-notification/config"
"email-notification/middleware"
"email-notification/route"
"log"
"net/http"
@@ -19,10 +18,6 @@ func main() {
log.Fatal("Error loading .env file")
}
http.Handle("/", middleware.ResponseTimeMiddleware(func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Welcome!"))
}))
db := config.NewDatabase().WithContext(context.Background())
route.Route(db)