Installs the final path-image handler in a Phoenix router.
Import this module and call og_ex_routes/1 after all application routes:
defmodule MyAppWeb.Router do
use MyAppWeb, :router
import OgEx.Router
scope "/", MyAppWeb do
pipe_through :browser
get "/posts/:id", PostController, :show
end
og_ex_routes()
endUse either this router integration or plug OgEx, router: MyAppWeb.Router in
the endpoint. Do not install both.
Summary
Functions
Adds the final catch-all route used by path-mode card declarations.