mirror of
https://github.com/hanzoai/service-template.git
synced 2026-10-30 18:22:53 +00:00
github.com/hanzoai/template existed only as loose files: no .git, no history, no remote. Sweeps that look for a .git directory could not see it, and an rm -rf would have destroyed it with nothing to recover from. Committed as-is; no source modified. NOTE: no remote. This is still one copy in one place.
21 lines
620 B
Go
21 lines
620 B
Go
package api
|
|
|
|
import "net/http"
|
|
|
|
// ExampleGet is a placeholder tenant-scoped handler. Replace with your
|
|
// domain logic. The middleware chain guarantees:
|
|
//
|
|
// claims.FromContext(ctx).OrgID != ""
|
|
// claims.FromContext(ctx).UserID != ""
|
|
//
|
|
// So handlers never need to nil-check identity — the chain already 503'd
|
|
// the caller if headers were missing.
|
|
func (*App) ExampleGet(w http.ResponseWriter, _ *http.Request) {
|
|
w.WriteHeader(http.StatusNotImplemented)
|
|
}
|
|
|
|
// ExampleCreate is the write counterpart.
|
|
func (*App) ExampleCreate(w http.ResponseWriter, _ *http.Request) {
|
|
w.WriteHeader(http.StatusNotImplemented)
|
|
}
|