Created
December 1, 2022 05:53
-
-
Save YagmurOzden/6e017c2daea86b48ef83b38731572662 to your computer and use it in GitHub Desktop.
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
package main | |
import ( | |
"Github/controller" | |
"Github/routes" | |
"log" | |
"github.com/gofiber/fiber/v2" | |
) | |
func main() { | |
log.Printf("%v Service Started", controller.APINAME) | |
app := fiber.New() | |
//routes | |
routes.VMRoute(app) //add this | |
err := app.Listen(":4000") | |
if err != nil { | |
log.Printf("%v Cannot listen port 4000. Error: %v", controller.APINAME, err.Error()) | |
return | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment