BUGFIX: IP lookup wasn't working when using HTTPS

REFACTOR: the ip locator into a ip-lookup component
This commit is contained in:
Régis Hanol
2014-07-07 22:18:18 +02:00
parent 18fafa12a2
commit 59b5ba7c0f
12 changed files with 125 additions and 64 deletions

View File

@ -48,6 +48,7 @@ Discourse::Application.routes.draw do
resources :users, id: USERNAME_ROUTE_FORMAT do
collection do
get "list/:query" => "users#index"
get "ip-info" => "users#ip_info"
put "approve-bulk" => "users#approve_bulk"
delete "reject-bulk" => "users#reject_bulk"
end