MastodonAPI: /api/v2/media endpoints

This commit is contained in:
Haelwenn (lanodan) Monnier 2020-04-29 17:38:14 +02:00
commit cb363f0183
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
3 changed files with 91 additions and 5 deletions

View file

@ -403,6 +403,7 @@ defmodule Pleroma.Web.Router do
post("/markers", MarkerController, :upsert)
post("/media", MediaController, :create)
get("/media/:id", MediaController, :show)
put("/media/:id", MediaController, :update)
get("/notifications", NotificationController, :index)
@ -497,6 +498,8 @@ defmodule Pleroma.Web.Router do
scope "/api/v2", Pleroma.Web.MastodonAPI do
pipe_through(:api)
get("/search", SearchController, :search2)
post("/media", MediaController, :create2)
end
scope "/api", Pleroma.Web do