40 lines
679 B
Elixir
40 lines
679 B
Elixir
defmodule TestHandler do
|
|
@behaviour PlugIndie.HandlerBehaviour
|
|
|
|
@impl true
|
|
def handle_create(_type, %PlugIndie.Post{} = properties, _access_token) do
|
|
case properties.type do
|
|
:note ->
|
|
# Create a new note in the database here
|
|
{:ok, :created, "/notes/4711"}
|
|
end
|
|
end
|
|
|
|
@impl true
|
|
def handle_update(_, _, _, _, _) do
|
|
end
|
|
|
|
@impl true
|
|
def handle_undelete(_, _) do
|
|
end
|
|
|
|
@impl true
|
|
def handle_delete(_, _) do
|
|
end
|
|
|
|
@impl true
|
|
def handle_syndicate_to_query(_) do
|
|
end
|
|
|
|
@impl true
|
|
def handle_source_query(_, _, _) do
|
|
end
|
|
|
|
@impl true
|
|
def handle_config_query(_) do
|
|
end
|
|
|
|
@impl true
|
|
def handle_media(_, _) do
|
|
end
|
|
end
|