update
This commit is contained in:
5
main.go
5
main.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user