Phoenix.Router.scope/2

Parsed documentation:
View on GitHub
Defines a scope in which routes can be nested.

## Examples

    scope "/api/v1", as: :api_v1, alias: API.V1 do
      get "/pages/:id", PageController, :show
    end

The generated route above will match on the path `"/api/v1/pages/:id"
and will dispatch to `:show` action in `API.V1.PageController`. A named
helper `api_v1_page_path` will also be generated.

## Options

The supported options are:

  * `:path` - a string containing the path scope
  * `:as` - a string or atom containing the named helper scope
  * `:alias` - an alias (atom) containing the controller scope
  * `:host` - a string containing the host scope, or prefix host scope,
    ie `"foo.bar.com"`, `"foo."`
  * `:private` - a map of private data to merge into the connection when a route matches
  * `:assigns` - a map of data to merge into the connection when a route matches
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.