Add UserController
This commit is contained in:
parent
f61444cffa
commit
178c2bf72e
5 changed files with 81 additions and 2 deletions
|
@ -2,7 +2,7 @@ defmodule NullaWeb.Router do
|
|||
use NullaWeb, :router
|
||||
|
||||
pipeline :browser do
|
||||
plug :accepts, ["html"]
|
||||
plug :accepts, ["html", "activity+json", "ld+json"]
|
||||
plug :fetch_session
|
||||
plug :fetch_live_flash
|
||||
plug :put_root_layout, html: {NullaWeb.Layouts, :root}
|
||||
|
@ -18,7 +18,7 @@ defmodule NullaWeb.Router do
|
|||
pipe_through :browser
|
||||
|
||||
get "/", PageController, :home
|
||||
get "/@:username", PageController, :profile
|
||||
get "/@:username", UserController, :show
|
||||
end
|
||||
|
||||
# Other scopes may use custom stacks.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue