TrailingSlashPlug (trailing_slash_plug v0.1.1)
A plug for removing slash at the end of request path and sending a 301 status
A solution for removing slash Onward debate
Examples
#### Phoenix.Router
pipeline :trailing_slash do
plug(TrailingSlashPlug)
end
scope "/example", as: :public_pages do
pipe_through([:trailing_slash])
end
Summary
Functions
Link to this function
call(conn, opts)
Callback implementation for Plug.call/2
.
Link to this function
init(opts)
Callback implementation for Plug.init/1
.