View Source FlEx.Router.Methods (fl_ex v0.1.2)
This module helps to handle the http method macros
This module it's just for internal use, it's not necessary implement
Summary
Functions
Adds the path to the route list under the http method call
Adds the path to the route list under the http method call
Adds the path to the route list under the http method call
Adds the path to the route list under the http method call
Adds the path to the route list under the http method call
Adds the path as prefix and the defined plugs for all the scoped routes
Functions
Adds the path to the route list under the http method call
Example:
get "/your_scoped_page", FlExExample.ExampleController, :function_name
post "/your_scoped_page", FlExExample.ExampleController, :function_name
put "/your_scoped_page", FlExExample.ExampleController, :function_name
patch "/your_scoped_page", FlExExample.ExampleController, :function_name
delete "/your_scoped_page", FlExExample.ExampleController, :function_name
Adds the path to the route list under the http method call
Example:
get "/your_scoped_page", FlExExample.ExampleController, :function_name
post "/your_scoped_page", FlExExample.ExampleController, :function_name
put "/your_scoped_page", FlExExample.ExampleController, :function_name
patch "/your_scoped_page", FlExExample.ExampleController, :function_name
delete "/your_scoped_page", FlExExample.ExampleController, :function_name
Adds the path to the route list under the http method call
Example:
get "/your_scoped_page", FlExExample.ExampleController, :function_name
post "/your_scoped_page", FlExExample.ExampleController, :function_name
put "/your_scoped_page", FlExExample.ExampleController, :function_name
patch "/your_scoped_page", FlExExample.ExampleController, :function_name
delete "/your_scoped_page", FlExExample.ExampleController, :function_name
Adds the path to the route list under the http method call
Example:
get "/your_scoped_page", FlExExample.ExampleController, :function_name
post "/your_scoped_page", FlExExample.ExampleController, :function_name
put "/your_scoped_page", FlExExample.ExampleController, :function_name
patch "/your_scoped_page", FlExExample.ExampleController, :function_name
delete "/your_scoped_page", FlExExample.ExampleController, :function_name
Adds the path to the route list under the http method call
Example:
get "/your_scoped_page", FlExExample.ExampleController, :function_name
post "/your_scoped_page", FlExExample.ExampleController, :function_name
put "/your_scoped_page", FlExExample.ExampleController, :function_name
patch "/your_scoped_page", FlExExample.ExampleController, :function_name
delete "/your_scoped_page", FlExExample.ExampleController, :function_name
Adds the path as prefix and the defined plugs for all the scoped routes
Example:
scope "/api/v1" do
plug FlEx.Plug.Logger
get "/your_scoped_page", FlExExample.ExampleController, :function_name
end