forked from AkkomaGang/akkoma
Return 204 response on options request
This commit is contained in:
parent
22c366a85f
commit
9b0f2d572b
1 changed files with 8 additions and 0 deletions
|
@ -400,6 +400,8 @@ defmodule Pleroma.Web.Router do
|
||||||
scope "/", Fallback do
|
scope "/", Fallback do
|
||||||
get("/registration/:token", RedirectController, :registration_page)
|
get("/registration/:token", RedirectController, :registration_page)
|
||||||
get("/*path", RedirectController, :redirector)
|
get("/*path", RedirectController, :redirector)
|
||||||
|
|
||||||
|
options("/*path", RedirectController, :empty)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -417,4 +419,10 @@ def redirector(conn, _params) do
|
||||||
def registration_page(conn, params) do
|
def registration_page(conn, params) do
|
||||||
redirector(conn, params)
|
redirector(conn, params)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def empty(conn, _params) do
|
||||||
|
conn
|
||||||
|
|> put_status(204)
|
||||||
|
|> text("")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue