mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 12:37:58 +01:00
18 lines
383 B
Elixir
18 lines
383 B
Elixir
|
defmodule PhilomenaWeb.Image.VoteController do
|
||
|
use PhilomenaWeb, :controller
|
||
|
|
||
|
alias Philomena.Images.Image
|
||
|
alias Philomena.Repo
|
||
|
alias Ecto.Multi
|
||
|
|
||
|
plug PhilomenaWeb.Plugs.FilterBannedUsers
|
||
|
plug :load_and_authorize_resource, model: Image, id_name: "image_id", persisted: true
|
||
|
|
||
|
def create(conn, _params) do
|
||
|
conn
|
||
|
end
|
||
|
|
||
|
def delete(conn, _params) do
|
||
|
conn
|
||
|
end
|
||
|
end
|