Feat(Captcha): Initial captcha solver
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good

This commit is contained in:
2023-10-05 16:18:35 +08:00
parent e403ed6767
commit 828571312b
7 changed files with 240 additions and 5 deletions

View File

@@ -39,6 +39,7 @@ func main() {
log.Fatal("Error loading .env file")
}
environment := os.Getenv("ENVIRONMENT")
_ = environment
db := common.InitDB()
db.AutoMigrate(&user.User{})
@@ -48,9 +49,7 @@ func main() {
r := chi.NewRouter()
if environment == "dev" {
r.Mount("/docs", httpSwagger.WrapHandler)
}
r.Mount("/docs", httpSwagger.WrapHandler)
r.Mount("/api/v1/user", user.UserRoutes(db))
r.Mount("/api/v1/ktmtrainbot", ktmtrainbot.KTMTrainBotRoutes(db))