Incendium.Controller (incendium v0.2.0) View Source
Link to this section Summary
Functions
Turn the current module into an Icendium controller.
Link to this section Functions
Turn the current module into an Icendium controller.
Options:
routes_module
(required) - The module that contains the routes in your application (it should be something likeYourApp.Router.Helpers
):otp_app
(required) - The main OTP application
Examples
defmodule MyApp.IncendiumController do
use Incendium.Controller,
routes_module: MyApp.Router.Helpers,
otp_app: :my_app
end