diff --git a/api/auth/handle.go b/api/auth/handle.go index df86892..55f9209 100644 --- a/api/auth/handle.go +++ b/api/auth/handle.go @@ -1,6 +1,6 @@ // Package auth provides authentication-related API endpoints for the Triggersmith application. // It handles login, logout, and user management operations. -package auth +package api_auth import ( "net/http" diff --git a/api/block/handle.go b/api/block/handle.go index ef8b7bd..90154cd 100644 --- a/api/block/handle.go +++ b/api/block/handle.go @@ -6,7 +6,7 @@ // Example: // // /api/block/header would load the block located at {BlockDir}/header/ -package block +package api_block import ( "encoding/json" diff --git a/api/router.go b/api/router.go index 506e541..3215626 100644 --- a/api/router.go +++ b/api/router.go @@ -58,8 +58,8 @@ func (r *Router) MustRoute() chi.Router { } r.r.Route("/api", func(api chi.Router) { - api.Route("/block", block.MustRoute(r.cfg)) - api.Route("/auth", auth.MustRoute(r.cfg)) + api.Route("/block", api_block.MustRoute(r.cfg)) + api.Route("/auth", api_auth.MustRoute(r.cfg)) }) r.r.Get("/health", func(w http.ResponseWriter, r *http.Request) {