aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/admin/routes
diff options
context:
space:
mode:
authorMarvin Borner2018-05-24 14:41:26 +0200
committerMarvin Borner2018-05-24 14:41:26 +0200
commit8d57d0bcd1bc7585f5fb124460e6ed27a04fd44d (patch)
tree4d313ae466c3ae813cdc19324d60af5a00f75f07 /main/app/sprinkles/admin/routes
parent85211481260c076ad5e2889b66465495c33429ef (diff)
Finished basic image feed
Diffstat (limited to 'main/app/sprinkles/admin/routes')
-rw-r--r--main/app/sprinkles/admin/routes/posts.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/app/sprinkles/admin/routes/posts.php b/main/app/sprinkles/admin/routes/posts.php
index ac523b2..9ae7d70 100644
--- a/main/app/sprinkles/admin/routes/posts.php
+++ b/main/app/sprinkles/admin/routes/posts.php
@@ -9,10 +9,10 @@
/**
* Routes for posting.
*/
-$app->get('/feed/{user_name}', 'UserFrosting\Sprinkle\Admin\Controller\PostController:getFeed')->add('authGuard');
-
$app->get('/image/{post_id}', 'UserFrosting\Sprinkle\Admin\Controller\PostController:showImage')->add('authGuard');
+$app->get('/api/feed/{user_name}', 'UserFrosting\Sprinkle\Admin\Controller\PostController:getFeed')->add('authGuard');
+
$app->group('/api/posts', function () {
$this->post('/image', 'UserFrosting\Sprinkle\Admin\Controller\PostController:postImage');
})->add('authGuard'); \ No newline at end of file