mirror of
https://github.com/plausible/analytics.git
synced 2024-12-24 18:12:44 +03:00
12 lines
251 B
Elixir
12 lines
251 B
Elixir
|
defmodule PlausibleWeb.TestController do
|
||
|
use PlausibleWeb, :controller
|
||
|
|
||
|
def browser_basic(conn, _params) do
|
||
|
send_resp(conn, 200, "ok")
|
||
|
end
|
||
|
|
||
|
def api_basic(conn, _params) do
|
||
|
send_resp(conn, 200, Jason.encode!(%{"ok" => true}))
|
||
|
end
|
||
|
end
|