♻️ Refactor flags handling on frontend.

This commit is contained in:
Andrey Antukh 2021-08-27 13:19:36 +02:00
parent c9985121c4
commit e587179359
9 changed files with 78 additions and 41 deletions

View file

@ -55,11 +55,11 @@
(def routes
[["/auth"
["/login" :auth-login]
(when cf/registration-enabled
(when (contains? @cf/flags :registration)
["/register" :auth-register])
(when cf/registration-enabled
(when (contains? @cf/flags :registration)
["/register/validate" :auth-register-validate])
(when cf/registration-enabled
(when (contains? @cf/flags :registration)
["/register/success" :auth-register-success])
["/recovery/request" :auth-recovery-request]
["/recovery" :auth-recovery]