Resolves #1
This commit is contained in:
18
server/main.go
Normal file
18
server/main.go
Normal 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"))
|
||||
}
|
Reference in New Issue
Block a user