summaryrefslogtreecommitdiff
path: root/certs/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'certs/app/controllers')
-rw-r--r--certs/app/controllers/.gitkeep0
-rw-r--r--certs/app/controllers/certs_controller.rb9
2 files changed, 9 insertions, 0 deletions
diff --git a/certs/app/controllers/.gitkeep b/certs/app/controllers/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/certs/app/controllers/.gitkeep
diff --git a/certs/app/controllers/certs_controller.rb b/certs/app/controllers/certs_controller.rb
new file mode 100644
index 0000000..6988a38
--- /dev/null
+++ b/certs/app/controllers/certs_controller.rb
@@ -0,0 +1,9 @@
+class CertsController < ApplicationController
+
+ # GET /cert
+ def show
+ @cert = Cert.pick_from_pool
+ render :text => @cert.zipped, :content_type => 'text/plain'
+ end
+
+end