ban → address

This commit is contained in:
gregoirenovel 2018-10-15 23:37:32 +02:00
parent 79ebdc3443
commit e667cad617
3 changed files with 4 additions and 4 deletions

View file

@ -63,7 +63,7 @@ function addEventFreeDraw(freeDraw) {
}
function getAddressPoint(map, request) {
getJSON('/ban/address_point', { request }).then(data => {
getJSON('/address/address_point', { request }).then(data => {
if (data.lat !== null) {
map.setView(new L.LatLng(data.lat, data.lon), data.zoom);
}

View file

@ -4,7 +4,7 @@ import { getJSON, fire } from '@utils';
const sources = [
{
type: 'address',
url: '/ban/search'
url: '/address/search'
},
{
type: 'path',

View file

@ -250,8 +250,8 @@ Rails.application.routes.draw do
# Addresses
#
get 'ban/search' => 'address#get'
get 'ban/address_point' => 'address#get_address_point'
get 'address/search' => 'address#get'
get 'address/address_point' => 'address#get_address_point'
namespace :invites do
post 'dossier/:dossier_id' => '/invites#create', as: 'dossier'