From 41d9a911f0dfc88bd22e2e09abf6b4c4c1a2bec4 Mon Sep 17 00:00:00 2001
From: Tulio Casagrande <tcasagra@thoughtworks.com>
Date: Thu, 2 Mar 2017 14:54:52 -0300
Subject: Fix keys route to accept usernames with dots

---
 config/routes.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'config')

diff --git a/config/routes.rb b/config/routes.rb
index b152c9c..d388ab7 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -58,6 +58,6 @@ LeapWeb::Application.routes.draw do
 
   get "/.well-known/host-meta" => 'webfinger#host_meta'
   get "/webfinger" => 'webfinger#search'
-  get "/key/:login" => 'keys#show'
+  get "/key/:login" => 'keys#show', :constraints => { :login => /[^\/]+/ }
 
 end
-- 
cgit v1.2.3