summaryrefslogblamecommitdiff
path: root/lib/lsg_web/controllers/sms_controller.ex
blob: 00c63528f26524f8e0b6f1192faed281dae52a1f (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                             
defmodule LSGWeb.SmsController do
  use LSGWeb, :controller
  require Logger

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

end