philomena/lib/philomena_web/controllers/image/vote_controller.ex

18 lines
383 B
Elixir
Raw Normal View History

2019-11-17 00:01:42 +01:00
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