diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-09-20 20:43:27 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-10-07 18:35:27 +0400 |
commit | 17562bf4147ab03e171b1f1d365a512f2e5b3202 (patch) | |
tree | ddcd665d446ad58c808a3145504ff2a9e177e1cc /lib | |
parent | a9efd441e242f1d8ac608b866d0cfafe4833243a (diff) | |
download | pleroma-17562bf4147ab03e171b1f1d365a512f2e5b3202.tar.gz |
Move API endpoints to `/api/v1/pleroma/backups`
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/router.ex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index e539eeeeb..ad7e315c7 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -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 |