summaryrefslogtreecommitdiff
path: root/certs
diff options
context:
space:
mode:
Diffstat (limited to 'certs')
-rw-r--r--certs/app/models/cert.rb2
-rw-r--r--certs/config/routes.rb4
2 files changed, 4 insertions, 2 deletions
diff --git a/certs/app/models/cert.rb b/certs/app/models/cert.rb
index 40efde9..9a6c98d 100644
--- a/certs/app/models/cert.rb
+++ b/certs/app/models/cert.rb
@@ -1,6 +1,6 @@
class Cert < CouchRest::Model::Base
- use_database 'certs'
+ use_database 'client_certificates'
timestamps!
diff --git a/certs/config/routes.rb b/certs/config/routes.rb
index 7f1f31d..cb97757 100644
--- a/certs/config/routes.rb
+++ b/certs/config/routes.rb
@@ -1,3 +1,5 @@
Rails.application.routes.draw do
- resource :cert, :only => [:show]
+ scope '/1' do
+ resource :cert, :only => [:show]
+ end
end