mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-03 15:56:22 +00:00
⚡ update environment mode handling, refactor user registration logic, and add username/email existence checks
This commit is contained in:
@ -15,7 +15,7 @@ func init() {
|
||||
_ = godotenv.Load()
|
||||
|
||||
// Init env
|
||||
IsDevMode = Env.Get(constant.EnvKeyMode, constant.ModeDev) == constant.ModeDev
|
||||
IsDevMode = Env.Get(constant.EnvKeyMode, constant.ModeProd) == constant.ModeDev
|
||||
}
|
||||
|
||||
type envUtils struct{}
|
||||
|
Reference in New Issue
Block a user