Initial
This commit is contained in:
@ -96,6 +96,7 @@ func handleGetMachineProducts(dbConn *gorm.DB) gin.HandlerFunc {
|
||||
func initRouter(dbConn *gorm.DB) *gin.Engine {
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
router := gin.Default()
|
||||
router.Use(corsMiddleware())
|
||||
|
||||
routes := router.Group("/machines")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user