Extract mascot actions from MastodonAPIController to MascotController
This commit is contained in:
parent
905bb11747
commit
0c6009dd2e
5 changed files with 116 additions and 93 deletions
|
|
@ -303,6 +303,10 @@ defmodule Pleroma.Web.Router do
|
|||
patch("/accounts/update_avatar", AccountController, :update_avatar)
|
||||
patch("/accounts/update_banner", AccountController, :update_banner)
|
||||
patch("/accounts/update_background", AccountController, :update_background)
|
||||
|
||||
get("/mascot", MascotController, :show)
|
||||
put("/mascot", MascotController, :update)
|
||||
|
||||
post("/scrobble", ScrobbleController, :new_scrobble)
|
||||
end
|
||||
|
||||
|
|
@ -416,9 +420,6 @@ defmodule Pleroma.Web.Router do
|
|||
put("/filters/:id", FilterController, :update)
|
||||
delete("/filters/:id", FilterController, :delete)
|
||||
|
||||
get("/pleroma/mascot", MastodonAPIController, :get_mascot)
|
||||
put("/pleroma/mascot", MastodonAPIController, :set_mascot)
|
||||
|
||||
post("/reports", ReportController, :create)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue