backups: restore local backups in-app

This commit is contained in:
Harvey Tindall
2023-12-21 17:42:07 +00:00
parent ff73c72b0e
commit eff313be41
4 changed files with 33 additions and 2 deletions
+1
View File
@@ -211,6 +211,7 @@ func (app *appContext) loadRoutes(router *gin.Engine) {
api.POST(p+"/backups", app.CreateBackup)
api.GET(p+"/backups/:fname", app.GetBackup)
api.GET(p+"/backups", app.GetBackups)
api.POST(p+"/backups/restore/:fname", app.RestoreLocalBackup)
if telegramEnabled || discordEnabled || matrixEnabled {
api.GET(p+"/telegram/pin", app.TelegramGetPin)
api.GET(p+"/telegram/verified/:pin", app.TelegramVerified)