aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/taxonomies_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/taxonomies_controller.rb')
-rw-r--r--app/controllers/taxonomies_controller.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/controllers/taxonomies_controller.rb b/app/controllers/taxonomies_controller.rb
new file mode 100644
index 0000000..f33595a
--- /dev/null
+++ b/app/controllers/taxonomies_controller.rb
@@ -0,0 +1,11 @@
+class TaxonomiesController < ApplicationController
+ # GET /taxonomies
+ def index
+ @taxonomies = current_agent.taxonomies.order(:uuid).page params[:page]
+ end
+
+ # GET /taxonomies/:id
+ def show
+ @taxonomy = Taxonomy.find_by(uuid: params[:id])
+ end
+end