View Source Routex.Extension.Cloak (Phoenix Routes Extension Framework v0.1.0-alpha.3)
Transforms routes to be unrecognizable.
This module is intended for testing and demonstration purposes. Do not use this for other purposes.
configuration
Configuration
# file /lib/example_web/routex_backend.ex
defmodule ExampleWeb.RoutexBackend do
use Routex,
extensions: [
+ Routex.Extension.Cloak,
],
## Pseudo result
/products/ ⇒ /c/1
/products/:id/edit ⇒ /c/:id/2 ⇒ in browser: /c/1/2, /c/2/2/ etc...
/products/:id/show/edit ⇒ /:id/3 ⇒ in browser: /c/1/3, /c/2/3/ etc...
routex-attrs
Routex.Attrs
Requires
- none
Sets
- none