Add API endpoints for Backups

This commit is contained in:
Egor Kislitsyn 2020-09-09 01:04:00 +04:00
commit 2c73bfe122
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
6 changed files with 224 additions and 0 deletions

View file

@ -293,6 +293,9 @@ 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