Merge branch 'fix/discovery-route-param-collision' into 'main'
fix(discovery): route param name collision in ClassifySimilarPair See merge request vikingowl/marktvogt.de!17
This commit is contained in:
@@ -416,11 +416,11 @@ func (h *Handler) EnrichLLM(c *gin.Context) {
|
||||
}
|
||||
|
||||
// ClassifySimilarPair runs the LLM duplicate-tiebreaker on the two queue
|
||||
// rows identified by URL params :aid and :bid. Synchronous, 15s deadline —
|
||||
// rows identified by URL params :id and :bid. Synchronous, 15s deadline —
|
||||
// the call is short (no scraping) so the operator can click and immediately
|
||||
// see the verdict.
|
||||
func (h *Handler) ClassifySimilarPair(c *gin.Context) {
|
||||
aID, err := uuid.Parse(c.Param("aid"))
|
||||
aID, err := uuid.Parse(c.Param("id"))
|
||||
if err != nil {
|
||||
apiErr := apierror.BadRequest("invalid_id", "invalid queue id A")
|
||||
c.JSON(apiErr.Status, apierror.NewResponse(apiErr))
|
||||
|
||||
@@ -27,7 +27,7 @@ func RegisterRoutes(
|
||||
// Per-row LLM enrichment (MR 3b). Synchronous — operator waits.
|
||||
admin.POST("/queue/:id/enrich", h.EnrichLLM)
|
||||
// Per-pair AI similarity tiebreak (MR 4). Synchronous; short call.
|
||||
admin.POST("/queue/:aid/similar/:bid/classify", h.ClassifySimilarPair)
|
||||
admin.POST("/queue/:id/similar/:bid/classify", h.ClassifySimilarPair)
|
||||
// Manual crawl trigger — subject to hourly rate limit.
|
||||
admin.POST("/crawl-manual", h.Crawl)
|
||||
// Async crawl status polling.
|
||||
|
||||
Reference in New Issue
Block a user