mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
18 lines
No EOL
436 B
Elixir
18 lines
No EOL
436 B
Elixir
defmodule PhilomenaWeb.Gallery.ReadController do
|
|
import Plug.Conn
|
|
use PhilomenaWeb, :controller
|
|
|
|
alias Philomena.Galleries.Gallery
|
|
alias Philomena.Galleries
|
|
|
|
plug :load_resource, model: Gallery, id_name: "gallery_id", persisted: true
|
|
|
|
def create(conn, _params) do
|
|
gallery = conn.assigns.gallery
|
|
user = conn.assigns.current_user
|
|
|
|
Galleries.clear_notification(gallery, user)
|
|
|
|
send_resp(conn, :ok, "")
|
|
end
|
|
end |