perf: add pagination, filters, and fix Django sync pagination
This commit is contained in:
@@ -26,6 +26,7 @@ func main() {
|
||||
|
||||
// 4. Start Sync Worker
|
||||
syncer := sync.NewSyncer(repo, config.AppConfig.DjangoBaseURL, config.AppConfig.DjangoMasterUser, config.AppConfig.DjangoMasterPassword)
|
||||
handler.SetSyncer(syncer)
|
||||
syncer.Start()
|
||||
|
||||
// 4. Setup Gin Router
|
||||
@@ -52,6 +53,7 @@ func main() {
|
||||
{
|
||||
protected.POST("/products", handler.CreateProduct)
|
||||
protected.PATCH("/products/:id", handler.UpdateProduct)
|
||||
protected.POST("/admin/resync-products", handler.ResyncProducts)
|
||||
protected.POST("/categories", handler.CreateCategory)
|
||||
protected.PATCH("/categories/:id", handler.UpdateCategory)
|
||||
protected.POST("/comandas", handler.CreateComanda)
|
||||
|
||||
Reference in New Issue
Block a user