feat(pastes): add REST routes to view and create pastes

Signed-off-by: Amogh Lele <amogh@dyte.io>
This commit is contained in:
Amogh Lele committed 2022-05-07 00:04:59 +05:30
1 parent bf50e4264d
commit 20a0b45954
4 files changed
+73

No files matched your search

+1
View File
@@ -1,6 +1,7 @@
defmodule Ketbin.Pastes.Paste do
use Ecto.Schema
import Ecto.Changeset
@derive {Jason.Encoder, only: [:content, :is_url, :belongs_to]}
@primary_key {:id, :string, autogenerate: false}
@derive {Phoenix.Param, key: :id}