Skip to content

Commit

Permalink
Allow override of routes() method
Browse files Browse the repository at this point in the history
  • Loading branch information
imTigger committed Nov 29, 2019
1 parent b4293a6 commit 49e1ef4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ProgressController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ function view($id) {
* Shortcut for creating group of named route
*/
public static function routes($as = 'progress') {
\Route::get("progress/{id}", ['as' => "{$as}", 'uses' => "\\" . self::class . "@progress"]);
\Route::get("progress/{id}/download", ['as' => "{$as}.download", 'uses' => "\\" . self::class ."@download"]);
\Route::get("progress/{id}/view", ['as' => "{$as}.print", 'uses' => "\\" . self::class ."@view"]);
\Route::get("progress/{id}", ['as' => "{$as}", 'uses' => "\\" . static::class . "@progress"]);
\Route::get("progress/{id}/download", ['as' => "{$as}.download", 'uses' => "\\" . static::class ."@download"]);
\Route::get("progress/{id}/view", ['as' => "{$as}.print", 'uses' => "\\" . static::class ."@view"]);
}
}

0 comments on commit 49e1ef4

Please # to comment.