summaryrefslogtreecommitdiff
path: root/lib/web/controllers/sms_controller.ex
blob: 20a58bdb43bad6e424649a216b8bda0ad3dcce8c (plain) (blame)
1
2
3
4
5
6
7
8
9
defmodule NolaWeb.SmsController do
  use NolaWeb, :controller
  require Logger

  def ovh_callback(conn, %{"senderid" => from, "message" => message}) do
    spawn(fn -> Nola.Plugins.Sms.incoming(from, String.trim(message)) end)
    text(conn, "")
  end
end