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.
|
// Package auth provides authentication-related API endpoints for the Triggersmith application.
|
||||||
// It handles login, logout, and user management operations.
|
// It handles login, logout, and user management operations.
|
||||||
package auth
|
package api_auth
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
// Example:
|
// Example:
|
||||||
//
|
//
|
||||||
// /api/block/header would load the block located at {BlockDir}/header/
|
// /api/block/header would load the block located at {BlockDir}/header/
|
||||||
package block
|
package api_block
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|||||||
@@ -58,8 +58,8 @@ func (r *Router) MustRoute() chi.Router {
|
|||||||
}
|
}
|
||||||
|
|
||||||
r.r.Route("/api", func(api chi.Router) {
|
r.r.Route("/api", func(api chi.Router) {
|
||||||
api.Route("/block", block.MustRoute(r.cfg))
|
api.Route("/block", api_block.MustRoute(r.cfg))
|
||||||
api.Route("/auth", auth.MustRoute(r.cfg))
|
api.Route("/auth", api_auth.MustRoute(r.cfg))
|
||||||
})
|
})
|
||||||
|
|
||||||
r.r.Get("/health", func(w http.ResponseWriter, r *http.Request) {
|
r.r.Get("/health", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|||||||
Reference in New Issue
Block a user