This commit is contained in:
Lakhan Samani
2021-06-28 21:46:21 +05:30
parent f07dd95f37
commit 9250257d9e
6 changed files with 69 additions and 0 deletions

18
server/main.go Normal file
View File

@@ -0,0 +1,18 @@
package main
import (
"log"
"yauth/router"
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/cors"
)
func main() {
app := fiber.New()
app.Use(cors.New())
router.SetupRoutes(app)
log.Fatal(app.Listen(":3000"))
}