Incendium.Controller (Incendium v0.3.1) View Source

Link to this section Summary

Functions

Turn the current module into an Icendium controller.

Link to this section Functions

Link to this macro

__using__(opts)

View Source (macro)

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 like YourApp.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