Add first step of creating an Article

This commit is contained in:
Thelonius Kort
2022-12-27 23:23:16 +01:00
parent bdc12d6b06
commit 5cbf05f650
12 changed files with 211 additions and 6 deletions

View File

@ -78,9 +78,10 @@ defmodule OutlookWeb.Router do
live "/authors/:id/show/edit", AuthorLive.Show, :edit
live "/articles", ArticleLive.Index, :index
live "/articles/new", ArticleLive.Index, :new
live "/articles/:id/edit", ArticleLive.Index, :edit
live "/articles/new", ArticleLive.New, :new
live "/articles/:id", ArticleLive.Show, :show
live "/articles/:id/show/edit", ArticleLive.Show, :edit