const Router = require("@koa/router")
const controller = require("../controllers/backup")
const authorized = require("../../middleware/authorized")
const { BUILDER } = require("@budibase/auth/permissions")

const router = Router()

router.get("/api/backups/export", authorized(BUILDER), controller.exportAppDump)

module.exports = router
