mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2025-12-06 14:26:22 +00:00
Pass through to default handler
This commit is contained in:
parent
9c5c7689e9
commit
7a3c368121
@ -81,8 +81,8 @@ func (h *Handler) Handle(w common.ResponseWriter, r common.Request, params map[s
|
||||
// Get model and populate context with request-scoped data
|
||||
model, err := h.registry.GetModelByEntity(schema, entity)
|
||||
if err != nil {
|
||||
logger.Error("Invalid entity: %v", err)
|
||||
h.sendError(w, http.StatusBadRequest, "invalid_entity", "Invalid entity", err)
|
||||
// Model not found - pass through to next route without writing response
|
||||
logger.Debug("Model not found for %s.%s, passing through to next route", schema, entity)
|
||||
return
|
||||
}
|
||||
|
||||
@ -148,8 +148,8 @@ func (h *Handler) HandleGet(w common.ResponseWriter, r common.Request, params ma
|
||||
|
||||
model, err := h.registry.GetModelByEntity(schema, entity)
|
||||
if err != nil {
|
||||
logger.Error("Failed to get model: %v", err)
|
||||
h.sendError(w, http.StatusBadRequest, "invalid_entity", "Invalid entity", err)
|
||||
// Model not found - pass through to next route without writing response
|
||||
logger.Debug("Model not found for %s.%s, passing through to next route", schema, entity)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@ -81,8 +81,8 @@ func (h *Handler) Handle(w common.ResponseWriter, r common.Request, params map[s
|
||||
// Get model and populate context with request-scoped data
|
||||
model, err := h.registry.GetModelByEntity(schema, entity)
|
||||
if err != nil {
|
||||
logger.Error("Invalid entity: %v", err)
|
||||
h.sendError(w, http.StatusBadRequest, "invalid_entity", "Invalid entity", err)
|
||||
// Model not found - pass through to next route without writing response
|
||||
logger.Debug("Model not found for %s.%s, passing through to next route", schema, entity)
|
||||
return
|
||||
}
|
||||
|
||||
@ -197,8 +197,8 @@ func (h *Handler) HandleGet(w common.ResponseWriter, r common.Request, params ma
|
||||
|
||||
model, err := h.registry.GetModelByEntity(schema, entity)
|
||||
if err != nil {
|
||||
logger.Error("Failed to get model: %v", err)
|
||||
h.sendError(w, http.StatusBadRequest, "invalid_entity", "Invalid entity", err)
|
||||
// Model not found - pass through to next route without writing response
|
||||
logger.Debug("Model not found for %s.%s, passing through to next route", schema, entity)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user