I am new to phoenix and elixir so it may be that i am missing something.
For example, i want to create new config file with in config/ directory. How could i than access that config? I phoenix guides i can't find answer.
I found PhoenixCqrs.Endpoint.config(:handlers) and it works in my routes file, but in my lib it throws
** (ArgumentError) argument error
(stdlib) :ets.lookup(PhoenixCqrs.Endpoint, :handlers)
So what is the right way how to create custom configs and access them, both at run time and compile time?
Thanks.