You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.5 KiB

4 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Web Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register web routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | contains the "web" middleware group. Now create something great!
  11. |
  12. */
  13. // pattern
  14. Route::pattern('uuid', '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}');
  15. // routes
  16. Route::get('/', 'App\Http\Controllers\HomeController@show');
  17. Route::prefix('bucket')->group(function() {
  18. Route::get('create', 'App\Http\Controllers\BucketController@create')->name('bucket.create');
  19. Route::post('create', 'App\Http\Controllers\BucketController@store');
  20. Route::get('{uuid}', 'App\Http\Controllers\BucketController@single')->name('bucket.single');
  21. });
  22. /***
  23. Route::post('/login', 'App\Http\Controllers\AuthController@login');
  24. Route::get('/logout', 'App\Http\Controllers\AuthController@logout');
  25. Route::group('/hub', function() {
  26. Route::get('/{uuid}/options', 'App\Http\Controllers\Hub\OptionsController@show');
  27. Route::get('/{uuid}/user', 'App\Http\Controllers\Hub\UserController@show');
  28. Route::get('/{uuid}', 'App\Http\Controllers\Hub\Controller@show');
  29. });
  30. Route::group('/system', function() {
  31. Route::get('/user', 'App\Http\Controllers\System\UserController@show');
  32. Route::get('/options', 'App\Http\Controllers\System\OptionsController@show');
  33. });