Ban::SearchController → AddressController
This commit is contained in:
parent
b4911b8a70
commit
79ebdc3443
3 changed files with 4 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
||||||
class Ban::SearchController < ApplicationController
|
class AddressController < ApplicationController
|
||||||
def get
|
def get
|
||||||
request = params[:request]
|
request = params[:request]
|
||||||
|
|
|
@ -250,10 +250,8 @@ Rails.application.routes.draw do
|
||||||
# Addresses
|
# Addresses
|
||||||
#
|
#
|
||||||
|
|
||||||
namespace :ban do
|
get 'ban/search' => 'address#get'
|
||||||
get 'search' => 'search#get'
|
get 'ban/address_point' => 'address#get_address_point'
|
||||||
get 'address_point' => 'search#get_address_point'
|
|
||||||
end
|
|
||||||
|
|
||||||
namespace :invites do
|
namespace :invites do
|
||||||
post 'dossier/:dossier_id' => '/invites#create', as: 'dossier'
|
post 'dossier/:dossier_id' => '/invites#create', as: 'dossier'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe Ban::SearchController, type: :controller do
|
describe AddressController, type: :controller do
|
||||||
describe '#GET get' do
|
describe '#GET get' do
|
||||||
subject { get :get, params: { request: request } }
|
subject { get :get, params: { request: request } }
|
||||||
|
|
Loading…
Reference in a new issue