Skip to content

Commit

Permalink
Switched from routes to self-registering handlers.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikestefanello committed Mar 30, 2024
1 parent f6a96e2 commit bf7722b
Show file tree
Hide file tree
Showing 20 changed files with 690 additions and 687 deletions.
6 changes: 4 additions & 2 deletions cmd/web/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"os/signal"
"time"

"github.com/mikestefanello/pagoda/pkg/routes"
"github.com/mikestefanello/pagoda/pkg/handlers"
"github.com/mikestefanello/pagoda/pkg/services"
)

Expand All @@ -23,7 +23,9 @@ func main() {
}()

// Build the router
routes.BuildRouter(c)
if err := handlers.BuildRouter(c); err != nil {
c.Web.Logger.Fatalf("failed to build the router: %v", err)
}

// Start the server
go func() {
Expand Down
Loading

0 comments on commit bf7722b

Please sign in to comment.