New paths.
このコミットが含まれているのは:
コミット
228f1b5af1
|
@ -59,6 +59,34 @@ class FileController extends Controller {
|
||||||
->get();
|
->get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getFileTitle($id) { // /api/rpc/file/getfiletitle/id
|
||||||
|
return DB::table('str_file')
|
||||||
|
->select('title', 'version')
|
||||||
|
->where('id', $id)
|
||||||
|
->get();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getFileDescription($id) { // /api/rpc/file/getfiledescription/id
|
||||||
|
return DB::table('str_file')
|
||||||
|
->select('description')
|
||||||
|
->where('id', $id)
|
||||||
|
->get();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getFileChangelog($id) { // /api/rpc/file/getfilechangelog/id
|
||||||
|
return DB::table('str_file')
|
||||||
|
->select('changelog')
|
||||||
|
->where('id', $id)
|
||||||
|
->get();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getFile($id) { // /api/rpc/file/getfile/id
|
||||||
|
return DB::table('str_file')
|
||||||
|
->select('*')
|
||||||
|
->where('id', $id)
|
||||||
|
->get();
|
||||||
|
}
|
||||||
|
|
||||||
public function getFilesInCategory($cat_id) { // /api/rpc/file/getfilesincategory/cat_id
|
public function getFilesInCategory($cat_id) { // /api/rpc/file/getfilesincategory/cat_id
|
||||||
return DB::table('str_file')
|
return DB::table('str_file')
|
||||||
->select('*')
|
->select('*')
|
||||||
|
@ -66,7 +94,7 @@ class FileController extends Controller {
|
||||||
->get();
|
->get();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function entry($file_id) {
|
public function entry($file_id) { // /entry/file_id
|
||||||
return view('entry');
|
return view('entry');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,6 +39,9 @@ Route::get('/api/rpc/file/getallpendingfiles', 'FileController@getAllPendingFile
|
||||||
Route::get('/api/rpc/file/getnewfiles', 'FileController@getNewFiles');
|
Route::get('/api/rpc/file/getnewfiles', 'FileController@getNewFiles');
|
||||||
Route::get('/api/rpc/file/gethotfiles', 'FileController@getHotFiles');
|
Route::get('/api/rpc/file/gethotfiles', 'FileController@getHotFiles');
|
||||||
Route::get('/api/rpc/file/getfile/{id}', 'FileController@getFile');
|
Route::get('/api/rpc/file/getfile/{id}', 'FileController@getFile');
|
||||||
|
Route::get('/api/rpc/file/getfiletitle/{id}', 'FileController@getFileTitle');
|
||||||
|
Route::get('/api/rpc/file/getfiledescription/{id}', 'FileController@getFileDescription');
|
||||||
|
Route::get('/api/rpc/file/getfilechangelog/{id}', 'FileController@getFileChangelog');
|
||||||
Route::get('/api/rpc/file/getfilesincategory/{cat_id}', 'FileController@getFilesInCategory');
|
Route::get('/api/rpc/file/getfilesincategory/{cat_id}', 'FileController@getFilesInCategory');
|
||||||
|
|
||||||
// Owners
|
// Owners
|
||||||
|
|
新しいイシューから参照