Files
paliad/internal/handlers/offices.go
m 460736ad1e refactor(t-paliad-092): rename Go module path patholo → paliad
F-6 from t-paliad-074 architecture audit. The Gitea repo was renamed
m/patholo → mAi/paliad → m/paliad, but go.mod still declared
`mgit.msbls.de/m/patholo` and every internal import echoed the
pre-rebrand name.

Sweep:
- go.mod: module path → mgit.msbls.de/m/paliad
- All *.go files: imports rewritten via sed
- README.md, docs/design-kanzlai-integration.md: mAi/paliad → m/paliad
- Frontend issue-reference comments (mAi/paliad#N → m/paliad#N) in
  i18n.ts, theme.ts, sidebar.ts, app.ts, Sidebar.tsx, PWAHead.tsx,
  global.css

Verified: go build/vet/test ./... clean, bun run build clean,
no remaining mgit.msbls.de/m/patholo or mAi/paliad references
outside docs that intentionally describe the rename history.
2026-04-30 16:46:31 +02:00

15 lines
386 B
Go

package handlers
import (
"net/http"
"mgit.msbls.de/m/paliad/internal/offices"
)
// GET /api/offices — returns the canonical firm office list with DE + EN
// labels. Backed by internal/offices (single source of truth, also used by
// the Akte create / edit validation).
func handleListOffices(w http.ResponseWriter, r *http.Request) {
writeJSON(w, http.StatusOK, offices.All)
}