aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/sections_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/sections_controller.rb')
-rw-r--r--app/controllers/sections_controller.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/controllers/sections_controller.rb b/app/controllers/sections_controller.rb
new file mode 100644
index 0000000..fed1d57
--- /dev/null
+++ b/app/controllers/sections_controller.rb
@@ -0,0 +1,16 @@
+# SPDX-FileCopyrightText: 2020 IN COMMON Collective <collective@incommon.cc>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
+class SectionsController < ApplicationController
+ skip_before_action :verify_authenticity_token, only: :show
+
+ def show
+ @section = Section.find(params[:id])
+ respond_to do |format|
+ format.html
+ format.js
+ format.json
+ end
+ end
+end