Skip to content

Commit

Permalink
fix for private deployment API
Browse files Browse the repository at this point in the history
  • Loading branch information
saul-data committed Oct 9, 2023
1 parent acb670c commit d1e9200
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/mainapp/routes/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -687,8 +687,8 @@ func Setup(port string) *fiber.App {
return c.Status(http.StatusOK).JSON(fiber.Map{"runID": runID, "Data Platform": "Dataplane"})
})

// Deployment API Trigger private
app.Post("/publicapi/deployment/api-trigger/:version/:id", auth.ApiAuthMiddleDeployment("private"), func(c *fiber.Ctx) error {
// Deployment API Trigger private :: privateapi/deployment/api-trigger/latest/<id>
app.Post("/privateapi/deployment/api-trigger/:version/:id", auth.ApiAuthMiddleDeployment("private"), func(c *fiber.Ctx) error {
c.Accepts("application/json")
pipelineID := c.Locals("deploymentID").(string)
environmentID := c.Locals("environmentID").(string)
Expand Down Expand Up @@ -738,11 +738,11 @@ func Setup(port string) *fiber.App {
})

// Sync folders to Database
app.Post("/sync-folder-database", func(c *fiber.Ctx) error {
distributefilesystem.MoveCodeFilesToDB(database.DBConn)
distributefilesystem.DeployFilesToDB(database.DBConn)
return c.SendString("Finished syncing code files to database.")
})
// app.Post("/sync-folder-database", func(c *fiber.Ctx) error {
// distributefilesystem.MoveCodeFilesToDB(database.DBConn)
// distributefilesystem.DeployFilesToDB(database.DBConn)
// return c.SendString("Finished syncing code files to database.")
// })

/* Worker Load Subscriptions activate */
// worker.LoadWorkers(MainAppID)
Expand Down

0 comments on commit d1e9200

Please sign in to comment.