web.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. use App\Models\Lobby;
  4. /*
  5. |--------------------------------------------------------------------------
  6. | Web Routes
  7. |--------------------------------------------------------------------------
  8. |
  9. | Here is where you can register web routes for your application. These
  10. | routes are loaded by the RouteServiceProvider within a group which
  11. | contains the "web" middleware group. Now create something great!
  12. |
  13. */
  14. // old routes
  15. /*
  16. Route::get('/', function () {
  17. return view('start');
  18. });
  19. Route::get('/ll-test', function () {
  20. return view('TEST.sub');
  21. });
  22. Route::get('/join/{meetingID}', function () {
  23. return view('join');
  24. });
  25. Route::get('/meeting/{meetingID}/{participantID}', 'GuestController@meeting');
  26. */
  27. // client
  28. // =============================================================================================
  29. Route::middleware('ensureNoValidClientSession')->group(function() {
  30. Route::get('/join', 'GuestController@join');
  31. Route::post('/join', 'GuestController@processJoin');
  32. Route::get('/client/checkin', 'GuestController@checkin');
  33. Route::post('/client/checkin', 'GuestController@processCheckin');
  34. });
  35. Route::middleware('ensureValidClientSession')->group(function() {
  36. Route::get('/get-client-checkin-token/{uid}', 'GuestController@getCheckinToken');
  37. Route::get('/client/dashboard', 'GuestController@dashboard');
  38. });
  39. // =============================================================================================
  40. // pro
  41. // =============================================================================================
  42. Route::middleware('ensureNoValidProSession')->group(function() {
  43. Route::get('/', 'AppSessionController@proRequestSmsLogInToken')->name('pro-request-sms-login-token');
  44. Route::post('/login', 'AppSessionController@login')->name('process-login');
  45. // Route::get('/pro/login', 'AppSessionController@proLogIn')->name('pro-login');
  46. // Route::post('/pro/login', 'AppSessionController@processProLogIn')->name('process-pro-login');
  47. });
  48. Route::middleware('ensureValidProSession')->group(function() {
  49. Route::get('/dashboard', 'ProController@dashboard')->name('pro-dashboard');
  50. Route::get('/pro/meet/{uid?}', 'ProController@meet');
  51. Route::get('/pro/get-opentok-session-key/{uid}', 'ProController@getOpentokSessionKey');
  52. Route::get('/pro/logout', 'AppSessionController@processProLogOut')->name('pro-logout');
  53. Route::get('/note/{note_uid}', 'NoteController@renderNote')->name('render-note');
  54. Route::get('/select_section_template_form/{note_uid}', 'NoteController@selectSectionTemplateForm')->name('select_section_template_form');
  55. Route::get('/section_create_form/{note_uid}/{section_template_uid}', 'NoteController@sectionCreateForm')->name('section_create_form');
  56. Route::get('/section_update_form/{section_uid}', 'NoteController@sectionUpdateForm')->name('section_update_form');
  57. @include 'generated.php';
  58. });
  59. Route::post('/post-to-api', 'AppSessionController@postToAPI')->name('post-to-api');
  60. Route::post('/post-to-api-ajax', 'AppSessionController@postToAPIAjax')->name('post-to-api-ajax');
  61. Route::post("/process_form_submit", 'NoteController@processFormSubmit')->name('process_form_submit');
  62. if (env('APP_ENV') === 'production') {
  63. URL::forceScheme('https');
  64. }
  65. // =============================================================================================