backend/app/zeus/api/lark/main.go

25 lines
558 B
Go
Executable File

package main
import (
"git.icechen.cn/monorepo/backend/app/zeus/api/lark/internal/user"
"git.icechen.cn/monorepo/backend/pkg/api"
"github.com/gofiber/fiber/v2"
ctxLogger "github.com/luizsuper/ctxLoggers"
)
func main() {
router := fiber.New(fiber.Config{
AppName: "api-lark",
ErrorHandler: api.FiberMiddleWareErrHandler,
})
router.Use(api.FibberMiddleWareRespHandler)
userRouter := router.Group("/user")
userRouter.Post("/login", user.LoginHandle)
err := router.Listen(":8080")
if err != nil {
ctxLogger.Error(nil, err.Error())
}
}