-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: change file architecture and retry logic
- Loading branch information
1 parent
135b5fc
commit bff595e
Showing
3 changed files
with
37 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package function | ||
|
||
import ( | ||
"gorm.io/gorm" | ||
"github.com/gin-gonic/gin" | ||
|
||
) | ||
|
||
type Controller struct { | ||
DB *gorm.DB | ||
} | ||
|
||
func ConfigureRoutes(router *gin.Engine, db *gorm.DB) { | ||
controller := Controller{DB: db} | ||
group := router.Group("/function") | ||
|
||
|
||
group.POST("/:id/run", controller.RunFunction) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters