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.

38 lines
1.4 KiB

4 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. Route::get('/', 'App\Http\Controllers\HomeController@show');
  14. Route::prefix('bucket')->group(function() {
  15. Route::get('create', 'App\Http\Controllers\BucketController@create');
  16. Route::post('create', 'App\Http\Controllers\BucketController@store');
  17. Route::get('{uuid}', 'App\Http\Controllers\BucketController@get')->name('bucket.get');
  18. });
  19. /***
  20. Route::post('/login', 'App\Http\Controllers\AuthController@login');
  21. Route::get('/logout', 'App\Http\Controllers\AuthController@logout');
  22. Route::group('/hub', function() {
  23. Route::get('/{uuid}/options', 'App\Http\Controllers\Hub\OptionsController@show');
  24. Route::get('/{uuid}/user', 'App\Http\Controllers\Hub\UserController@show');
  25. Route::get('/{uuid}', 'App\Http\Controllers\Hub\Controller@show');
  26. });
  27. Route::group('/system', function() {
  28. Route::get('/user', 'App\Http\Controllers\System\UserController@show');
  29. Route::get('/options', 'App\Http\Controllers\System\OptionsController@show');
  30. });