mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-20 14:47:58 +01:00
add skeleton vote controller
This commit is contained in:
parent
723b5ec04b
commit
dd52b7745b
1 changed files with 18 additions and 0 deletions
18
lib/philomena_web/controllers/image/vote_controller.ex
Normal file
18
lib/philomena_web/controllers/image/vote_controller.ex
Normal 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
|
Loading…
Reference in a new issue