diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2018-06-13 18:21:59 +0200 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2018-06-23 16:22:47 +0200 |
commit | a05c0ff61dd3c9fe58f367d41fc9adc7a73b01a7 (patch) | |
tree | aca08164a4e3d9c2a635af5319d0833a6896172a /lib/pleroma/web/router.ex | |
parent | 359093d73b12ce5a0ade81f167d54ffd3e38d7d4 (diff) | |
download | pleroma-a05c0ff61dd3c9fe58f367d41fc9adc7a73b01a7.tar.gz |
[Pleroma.Web.MastodonApi.MastodonApiController] Add /api/v2/search
Diffstat (limited to 'lib/pleroma/web/router.ex')
-rw-r--r-- | lib/pleroma/web/router.ex | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 929a70f91..ebe68218b 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -175,6 +175,11 @@ defmodule Pleroma.Web.Router do get("/search", MastodonAPIController, :search) end + scope "/api/v2", Pleroma.Web.MastodonAPI do + pipe_through(:api) + get("/search", MastodonAPIController, :search2) + end + scope "/api", Pleroma.Web do pipe_through(:config) |