MIF_E31222379_BE/cmd/main.go

18 lines
360 B
Go

package main
import (
"github.com/gofiber/fiber/v2"
"github.com/pahmiudahgede/senggoldong/config"
"github.com/pahmiudahgede/senggoldong/middleware"
"github.com/pahmiudahgede/senggoldong/presentation"
)
func main() {
config.SetupConfig()
app := fiber.New()
app.Use(middleware.APIKeyMiddleware)
presentation.AuthRouter(app)
config.StartServer(app)
}