router: Fix usage of globs
warning: doing a prefix match with globs is deprecated, invalid segment "pleroma*path". You can either replace by a single segment match: /foo/bar-:var Or by mixing single segment match with globs: /foo/bar-:var/*rest
This commit is contained in:
parent
3a67b8f287
commit
d7e049d5e8
@ -996,8 +996,8 @@ defmodule Pleroma.Web.Router do
|
|||||||
scope "/", Pleroma.Web.Fallback do
|
scope "/", Pleroma.Web.Fallback do
|
||||||
get("/registration/:token", RedirectController, :registration_page)
|
get("/registration/:token", RedirectController, :registration_page)
|
||||||
get("/:maybe_nickname_or_id", RedirectController, :redirector_with_meta)
|
get("/:maybe_nickname_or_id", RedirectController, :redirector_with_meta)
|
||||||
match(:*, "/api/pleroma*path", LegacyPleromaApiRerouterPlug, [])
|
match(:*, "/api/pleroma/*path", LegacyPleromaApiRerouterPlug, [])
|
||||||
get("/api*path", RedirectController, :api_not_implemented)
|
get("/api/*path", RedirectController, :api_not_implemented)
|
||||||
get("/*path", RedirectController, :redirector_with_preload)
|
get("/*path", RedirectController, :redirector_with_preload)
|
||||||
|
|
||||||
options("/*path", RedirectController, :empty)
|
options("/*path", RedirectController, :empty)
|
||||||
|
Loading…
Reference in New Issue
Block a user