add PATCH update delivery status by id

This commit is contained in:
Egor Pozharov
2026-04-14 15:46:32 +06:00
parent d3cd92b9f3
commit b36a6fb262
5 changed files with 61 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ func main() {
r.GET("/api/deliveries/count", h.GetDeliveryCount)
r.POST("/api/deliveries", h.CreateDelivery)
r.PATCH("/api/deliveries/:id", h.UpdateDelivery)
r.PATCH("/api/deliveries/:id/status", h.UpdateDeliveryStatus)
r.DELETE("/api/deliveries/:id", h.DeleteDelivery)
r.Run(":8080")