mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 22:27:59 +01:00
add controller action mapping for message post
This commit is contained in:
parent
d1ae1c7348
commit
889e2349d0
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@ defmodule PhilomenaWeb.Conversation.MessageController do
|
|||
import Ecto.Query
|
||||
|
||||
plug PhilomenaWeb.FilterBannedUsersPlug
|
||||
plug PhilomenaWeb.CanaryMapPlug, create: :show
|
||||
plug :load_and_authorize_resource, model: Conversation, id_name: "conversation_id", id_field: "slug", persisted: true
|
||||
|
||||
def create(conn, %{"message" => message_params}) do
|
||||
|
|
Loading…
Reference in a new issue