Commit 0fe16516 authored by kaniini's avatar kaniini
Browse files

Merge branch 'task-204-on-options-request' into 'develop'

Return 204 response on options request

See merge request pleroma/pleroma!347
parents f2727e23 9b0f2d57
Pipeline #3805 passed with stages
in 5 minutes and 50 seconds
......@@ -400,6 +400,8 @@ defmodule Pleroma.Web.Router do
scope "/", Fallback do
get("/registration/:token", RedirectController, :registration_page)
get("/*path", RedirectController, :redirector)
options("/*path", RedirectController, :empty)
end
end
......@@ -417,4 +419,10 @@ def redirector(conn, _params) do
def registration_page(conn, params) do
redirector(conn, params)
end
def empty(conn, _params) do
conn
|> put_status(204)
|> text("")
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment