add prefix api_ to packages
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// Example:
|
||||
//
|
||||
// /api/block/header would load the block located at {BlockDir}/header/
|
||||
package block
|
||||
package api_block
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user