Example #1
0
Route::post('comments_action', function () {
    $obj = new CommentsController();
    return $obj->store();
});
Route::get('/supports', function () {
    return View::make('supports');
});
Route::post('supports_action', function () {
    $obj = new SupportsController();
    return $obj->store();
});
Route::get('/notes', function () {
    return View::make('notes');
});
Route::post('notes_action', function () {
    $obj = new NotesController();
    return $obj->store();
});
Route::get('/rest', function () {
    return View::make('rest');
});
Route::get('/rest_request', function () {
    $obj = new RestController();
    return $obj->index();
});
//Route::get('/article/{id}', function() { return View::make('article')->with('id', $id); });
Route::get('/article/{id}', 'ArticleController@index');
Route::get('/rest_update', function () {
    $obj = new UpdateController();
    return $obj->index();
});