Skip to content

Commit

Permalink
feat: worker独立路由
Browse files Browse the repository at this point in the history
  • Loading branch information
rehiy committed Jan 2, 2024
1 parent 6f58966 commit b26d786
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions api/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"tdp-cloud/api/upgrade"
"tdp-cloud/api/user"
"tdp-cloud/api/vendor"
"tdp-cloud/api/worker"
"tdp-cloud/api/workhub"

"tdp-cloud/api/alibaba"
Expand Down Expand Up @@ -47,6 +48,7 @@ func Router(engine *gin.Engine) {
upgrade.Router(api)
user.Router(api)
vendor.Router(api)
worker.Router(api)
workhub.Router(api)

alibaba.Router(api)
Expand Down
2 changes: 1 addition & 1 deletion api/worker/controller.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package workhub
package worker

import (
"github.com/gin-gonic/gin"
Expand Down
2 changes: 1 addition & 1 deletion api/worker/router.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package workhub
package worker

import (
"github.com/gin-gonic/gin"
Expand Down

0 comments on commit b26d786

Please sign in to comment.