db, handlers, and interfaces
This commit is contained in:
4
main.go
4
main.go
@@ -13,8 +13,8 @@ func main() {
|
||||
todosStore := db.NewTodoStore()
|
||||
ts := services.NewTodoService(&todosStore)
|
||||
|
||||
homeHandler := handlers.NewHomeHandler(*ts)
|
||||
todoHandler := handlers.NewTodoHandler(*ts)
|
||||
homeHandler := handlers.NewHomeHandler(ts)
|
||||
todoHandler := handlers.NewTodoHandler(ts)
|
||||
|
||||
router := http.NewServeMux()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user