diff --git a/controllers/controllers.php b/controllers/controllers.php index 8ccde89..87e11d6 100644 --- a/controllers/controllers.php +++ b/controllers/controllers.php @@ -225,7 +225,7 @@ $app->post('/post', function() use($app) { } }); -$app->get('/new/options', function() use($app) { +$app->get('/options', function() use($app) { if($user=require_login($app)) { $params = $app->request()->params(); diff --git a/views/new-post.php b/views/new-post.php index 8767024..3115a42 100644 --- a/views/new-post.php +++ b/views/new-post.php @@ -94,7 +94,7 @@ $(function(){ navigator.geolocation.getCurrentPosition(function(position){ - $.get('/new/options', { + $.get('/options', { latitude: position.coords.latitude, longitude: position.coords.longitude }, function(response) {