feat: add backpex router
This commit is contained in:
parent
beb95dd37e
commit
fe1c419fa7
2 changed files with 17 additions and 1 deletions
9
lib/mv_web/controllers/redirect_controller.ex
Normal file
9
lib/mv_web/controllers/redirect_controller.ex
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
defmodule MvWeb.RedirectController do
|
||||
use MvWeb, :controller
|
||||
|
||||
def redirect_to_members(conn, _params) do
|
||||
conn
|
||||
|> Phoenix.Controller.redirect(to: ~p"/members")
|
||||
|> Plug.Conn.halt()
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue