mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 11:42:07 +00:00
prelaunch env var prevents the site from being operational
This commit is contained in:
@@ -19,6 +19,14 @@ defmodule ChesstrainerWeb do
|
||||
|
||||
def static_paths, do: ~w(assets fonts images favicon.ico)
|
||||
|
||||
@doc "Whether the app is gated behind the prelaunch page."
|
||||
def prelaunch?, do: Application.get_env(:chesstrainer, :prelaunch, false)
|
||||
|
||||
@doc "Whether the mailing-list form and endpoint are open."
|
||||
def mailing_list_enabled? do
|
||||
Application.get_env(:chesstrainer, :mailing_list_enabled, true)
|
||||
end
|
||||
|
||||
def router do
|
||||
quote do
|
||||
use Phoenix.Router, helpers: false
|
||||
|
||||
Reference in New Issue
Block a user