Move API endpoints to /api/v1/pleroma/backups

This commit is contained in:
Egor Kislitsyn 2020-09-20 20:43:27 +04:00
commit 17562bf414
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
3 changed files with 12 additions and 12 deletions

View file

@ -295,9 +295,6 @@ defmodule Pleroma.Web.Router do
get("/accounts/mfa/setup/:method", TwoFactorAuthenticationController, :setup)
post("/accounts/mfa/confirm/:method", TwoFactorAuthenticationController, :confirm)
delete("/accounts/mfa/:method", TwoFactorAuthenticationController, :disable)
get("/backups", BackupController, :index)
post("/backups", BackupController, :create)
end
scope "/oauth", Pleroma.Web.OAuth do
@ -358,6 +355,9 @@ defmodule Pleroma.Web.Router do
put("/mascot", MascotController, :update)
post("/scrobble", ScrobbleController, :create)
get("/backups", BackupController, :index)
post("/backups", BackupController, :create)
end
scope [] do