Feat(Captcha): Initial captcha solver
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user