Strip comments from backend and frontend source
Remove Go doc comments, TS/Svelte scaffold comments and explanatory notes left over from the initial scaffold, plus a few leftover Spanish notes in the compose file, SQL scripts and env template. Also drops frontend/src/lib/index.ts, which only held the SvelteKit placeholder comment and was never imported.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
// Package httpserver contiene el router HTTP y los handlers de la API.
|
||||
package httpserver
|
||||
|
||||
import (
|
||||
@@ -13,14 +12,12 @@ import (
|
||||
dockerconn "dockermanager/backend/internal/docker"
|
||||
)
|
||||
|
||||
// Deps son las dependencias que necesitan los handlers.
|
||||
type Deps struct {
|
||||
Logger *slog.Logger
|
||||
Docker dockerconn.HostConnector
|
||||
Origins []string
|
||||
}
|
||||
|
||||
// NewRouter construye el router HTTP con todas las rutas de la Fase 1.
|
||||
func NewRouter(deps Deps) http.Handler {
|
||||
r := chi.NewRouter()
|
||||
|
||||
@@ -47,7 +44,6 @@ func NewRouter(deps Deps) http.Handler {
|
||||
return r
|
||||
}
|
||||
|
||||
// slogRequestLogger es un middleware mínimo que registra cada request con slog.
|
||||
func slogRequestLogger(logger *slog.Logger) func(http.Handler) http.Handler {
|
||||
return func(next http.Handler) http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user