Skip to content

Commit 21f90bb

Browse files
committed
app: renamed route from save-user-location to user/location
Related to #615
1 parent 4a54dd9 commit 21f90bb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/public/js/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function saveSearchLocation(address, latitude, longitude)
7373

7474
return $.ajax({
7575
type: 'post',
76-
url: '/save-user-location',
76+
url: '/user/location',
7777
data: {
7878
'_token': token,
7979
'latitude' : latitude,

app/routes/web.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
Route::get('/', 'HomeController@index');
4-
Route::post('save-user-location', 'HomeController@saveUserLocation');
4+
Route::post('user/location', 'HomeController@saveUserLocation');
55
Route::get('terms-of-use', function () {
66
return View::make('pages.terms_of_use');
77
});

0 commit comments

Comments
 (0)