Skip to content

Commit

Permalink
feat: migrated git from spider
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Jun 16, 2024
1 parent 9727139 commit 1a3411b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 455 deletions.
27 changes: 1 addition & 26 deletions core/controllers/router_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ func InitRoutes(app *gin.Engine) (err error) {
RegisterController(groups.AuthGroup, "/data/collections", NewControllerV2[models.DataCollectionV2]())
RegisterController(groups.AuthGroup, "/data-sources", NewControllerV2[models.DataSourceV2]())
RegisterController(groups.AuthGroup, "/environments", NewControllerV2[models.EnvironmentV2]())
RegisterController(groups.AuthGroup, "/gits", NewControllerV2[models.GitV2]())
RegisterController(groups.AuthGroup, "/nodes", NewControllerV2[models.NodeV2]())
RegisterController(groups.AuthGroup, "/notifications/settings", NewControllerV2[models.SettingV2]())
RegisterController(groups.AuthGroup, "/permissions", NewControllerV2[models.PermissionV2]())
Expand Down Expand Up @@ -172,31 +171,7 @@ func InitRoutes(app *gin.Engine) (err error) {
Path: "/:id/run",
HandlerFunc: PostSpiderRun,
},
Action{
Method: http.MethodGet,
Path: "/:id/git",
HandlerFunc: GetSpiderGit,
},
Action{
Method: http.MethodGet,
Path: "/:id/git/remote-refs",
HandlerFunc: GetSpiderGitRemoteRefs,
},
Action{
Method: http.MethodPost,
Path: "/:id/git/checkout",
HandlerFunc: PostSpiderGitCheckout,
},
Action{
Method: http.MethodPost,
Path: "/:id/git/pull",
HandlerFunc: PostSpiderGitPull,
},
Action{
Method: http.MethodPost,
Path: "/:id/git/commit",
HandlerFunc: PostSpiderGitCommit,
},

Action{
Method: http.MethodGet,
Path: "/:id/data-source",
Expand Down
Loading

0 comments on commit 1a3411b

Please sign in to comment.