Merge branch 'instance-v2' into 'develop'

Implement api/v2/instance route

See merge request pleroma/pleroma!3939
This commit is contained in:
Haelwenn 2023-12-21 21:14:46 +00:00
commit bd50892c25
7 changed files with 296 additions and 23 deletions

View file

@ -783,11 +783,14 @@ defmodule Pleroma.Web.Router do
scope "/api/v2", Pleroma.Web.MastodonAPI do
pipe_through(:api)
get("/search", SearchController, :search2)
post("/media", MediaController, :create2)
get("/suggestions", SuggestionController, :index2)
get("/instance", InstanceController, :show2)
end
scope "/api", Pleroma.Web do