More API calls.
このコミットが含まれているのは:
コミット
6f35a98918
|
@ -157,6 +157,16 @@ class BoardController extends Controller {
|
|||
);
|
||||
}
|
||||
|
||||
public function getFirstAndLastPosts($top_id) { // /api/rpc/board/post/getfirstandlastposts/top_id
|
||||
$first = $this->getTopicStart($top_id);
|
||||
$last = $this->getLastPost($top_id);
|
||||
|
||||
return array(
|
||||
'first' => $first,
|
||||
'last' => $last
|
||||
);
|
||||
}
|
||||
|
||||
public function countUnpinnedTopicsInForum($for_id) { // /api/rpc/board/topic/countunpinnedtopicsinforum/for_id
|
||||
return DB::table('for_threads')
|
||||
->where('for_id', $for_id)
|
||||
|
|
|
@ -44,6 +44,7 @@ Route::get('/api/rpc/board/post/getuserposts/{top}/{from}/{to}', 'BoardControlle
|
|||
Route::get('/api/rpc/board/post/getuserpost/{id}', 'BoardController@getUserPost');
|
||||
Route::get('/api/rpc/board/post/gettopicstart/{top_id}', 'BoardController@getTopicStart');
|
||||
Route::get('/api/rpc/board/post/getlastpost/{top_id}', 'BoardController@getLastPost');
|
||||
Route::get('/api/rpc/board/post/getfirstandlastposts/{top_id}', 'BoardController@getFirstAndLastPosts');
|
||||
|
||||
Route::post('/api/rpc/board/post/addpost', 'BoardController@addPost');
|
||||
Route::post('/api/rpc/board/post/editpost', 'BoardController@editPost');
|
||||
|
|
新しいイシューから参照