summaryrefslogtreecommitdiff
path: root/certs/app/controllers
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2012-09-27 22:36:21 +0200
committerAzul <azul@riseup.net>2012-09-27 22:36:21 +0200
commit1208257bcc0e2a6648b68433a7b7e24791f92583 (patch)
treec676f2030bef20705e46421b478b7f9305bcf13e /certs/app/controllers
parente17a2a676e0ce585ef9eaa9077887bfe1bc1173f (diff)
adding in leap web certs - merging repos
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