add skeleton vote controller

This commit is contained in:
byte[] 2019-11-16 18:01:42 -05:00
parent 723b5ec04b
commit dd52b7745b

View file

@ -0,0 +1,18 @@
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