diff options
author | ThibG <thib@sitedethib.com> | 2020-11-19 17:48:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-19 17:48:13 +0100 |
commit | 96c1e7132971877fba308c51cd42306f0b1bf166 (patch) | |
tree | 958beaea2865100de42bd7d962f6c7554566e906 /app/controllers/settings | |
parent | 022d2353a77edaddd6a681405521f27f5fac11b2 (diff) |
Add import/export feature for bookmarks (#14956)
* Add ability to export bookmarks * Add support for importing bookmarks * Add bookmark import tests * Add bookmarks export test
Diffstat (limited to 'app/controllers/settings')
-rw-r--r-- | app/controllers/settings/exports/bookmarks_controller.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/controllers/settings/exports/bookmarks_controller.rb b/app/controllers/settings/exports/bookmarks_controller.rb new file mode 100644 index 000000000..c12e2f147 --- /dev/null +++ b/app/controllers/settings/exports/bookmarks_controller.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Settings + module Exports + class BookmarksController < BaseController + include ExportControllerConcern + + def index + send_export_file + end + + private + + def export_data + @export.to_bookmarks_csv + end + end + end +end |