@@ -19,28 +19,28 @@ |
||
19 | 19 | |
20 | 20 | Route::group(['namespace' => 'Taskforcedev\LaravelForum\Http\Controllers', 'middleware' => 'api'], function() { |
21 | 21 | |
22 | - Route::group(['prefix' => 'api'], function() { |
|
23 | - /* Forum Category */ |
|
24 | - Route::post('forum_category', [ 'as' => 'laravel-forum.api.store.forum.category', 'uses' => 'ApiController@forumCategoryStore' ]); |
|
25 | - Route::delete('forum_category', [ 'as' => 'laravel-forum.api.delete.forum.category', 'uses' => 'ApiController@forumCategoryDelete' ]); |
|
26 | - |
|
27 | - /* Forum */ |
|
28 | - Route::post('forum', [ 'as' => 'laravel-forum.api.store.forum', 'uses' => 'ApiController@forumStore' ]); |
|
29 | - Route::delete('forum', [ 'as' => 'laravel-forum.api.delete.forum', 'uses' => 'ApiController@forumDelete' ]); |
|
30 | - |
|
31 | - /* Forum Post */ |
|
32 | - Route::post('forum_post', [ 'as' => 'laravel-forum.api.store.forum.post', 'uses' => 'ApiController@forumPostStore' ]); |
|
33 | - Route::delete('forum/{id}/post/{pid}', [ 'as' => 'laravel-forum.api.delete.forum.post', 'uses' => 'ApiController@postDelete' ]); |
|
34 | - /* Forum Post: Reply */ |
|
35 | - Route::post('forum_reply', [ 'as' => 'laravel-forum.api.store.forum.reply', 'uses' => 'ApiController@forumReplyStore' ]); |
|
36 | - |
|
37 | - /* Lock Forum Post */ |
|
38 | - Route::post('post/unlock/{id}', [ 'as' => 'laravel-forum.api.post.unlock', 'uses' => 'ApiController@unlockPost' ]); |
|
39 | - Route::post('post/lock/{id}', [ 'as' => 'laravel-forum.api.post.lock', 'uses' => 'ApiController@lockPost' ]); |
|
40 | - |
|
41 | - /* Sticky Forum Post */ |
|
42 | - Route::post('post/sticky/{id}', [ 'as' => 'laravel-forum.api.post.sticky', 'uses' => 'ApiController@stickyPost' ]); |
|
43 | - Route::post('post/unsticky/{id}', [ 'as' => 'laravel-forum.api.post.unsticky', 'uses' => 'ApiController@unstickyPost' ]); |
|
44 | - }); |
|
22 | + Route::group(['prefix' => 'api'], function() { |
|
23 | + /* Forum Category */ |
|
24 | + Route::post('forum_category', [ 'as' => 'laravel-forum.api.store.forum.category', 'uses' => 'ApiController@forumCategoryStore' ]); |
|
25 | + Route::delete('forum_category', [ 'as' => 'laravel-forum.api.delete.forum.category', 'uses' => 'ApiController@forumCategoryDelete' ]); |
|
26 | + |
|
27 | + /* Forum */ |
|
28 | + Route::post('forum', [ 'as' => 'laravel-forum.api.store.forum', 'uses' => 'ApiController@forumStore' ]); |
|
29 | + Route::delete('forum', [ 'as' => 'laravel-forum.api.delete.forum', 'uses' => 'ApiController@forumDelete' ]); |
|
30 | + |
|
31 | + /* Forum Post */ |
|
32 | + Route::post('forum_post', [ 'as' => 'laravel-forum.api.store.forum.post', 'uses' => 'ApiController@forumPostStore' ]); |
|
33 | + Route::delete('forum/{id}/post/{pid}', [ 'as' => 'laravel-forum.api.delete.forum.post', 'uses' => 'ApiController@postDelete' ]); |
|
34 | + /* Forum Post: Reply */ |
|
35 | + Route::post('forum_reply', [ 'as' => 'laravel-forum.api.store.forum.reply', 'uses' => 'ApiController@forumReplyStore' ]); |
|
36 | + |
|
37 | + /* Lock Forum Post */ |
|
38 | + Route::post('post/unlock/{id}', [ 'as' => 'laravel-forum.api.post.unlock', 'uses' => 'ApiController@unlockPost' ]); |
|
39 | + Route::post('post/lock/{id}', [ 'as' => 'laravel-forum.api.post.lock', 'uses' => 'ApiController@lockPost' ]); |
|
40 | + |
|
41 | + /* Sticky Forum Post */ |
|
42 | + Route::post('post/sticky/{id}', [ 'as' => 'laravel-forum.api.post.sticky', 'uses' => 'ApiController@stickyPost' ]); |
|
43 | + Route::post('post/unsticky/{id}', [ 'as' => 'laravel-forum.api.post.unsticky', 'uses' => 'ApiController@unstickyPost' ]); |
|
44 | + }); |
|
45 | 45 | |
46 | 46 | }); |