Allow direct access to draft and scheduled posts by slug

This commit is contained in:
Willem van den Ende
2026-04-01 20:39:19 +00:00
parent 370275f7b5
commit 20f12847d6
5 changed files with 23 additions and 11 deletions
+2 -2
View File
@@ -70,10 +70,10 @@ defmodule Blogex.RouterTest do
assert conn.status == 404
end
test "returns 404 for draft post" do
test "returns 200 for draft post accessed by slug" do
conn = call(:get, "/draft")
assert conn.status == 404
assert conn.status == 200
end
end