このコミットが含まれているのは:
テクニカル諏訪子 2018-01-24 16:35:17 +01:00
コミット 228f1b5af1
2個のファイルの変更32行の追加1行の削除

ファイルの表示

@ -59,6 +59,34 @@ class FileController extends Controller {
->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
return DB::table('str_file')
->select('*')
@ -66,7 +94,7 @@ class FileController extends Controller {
->get();
}
public function entry($file_id) {
public function entry($file_id) { // /entry/file_id
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/gethotfiles', 'FileController@getHotFiles');
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');
// Owners