Proof of concept - Vue Polling a workaround for AWS API Gateway limitation

This commit is contained in:
Dillon Ngo
2023-12-20 14:47:56 +08:00
parent 359c103d01
commit 18df1c0c7b
31 changed files with 979 additions and 42 deletions
+2
View File
@@ -70,6 +70,8 @@ Route::group(['middleware' => 'api', 'prefix' => 'v1', 'as' => 'api.'], function
require __DIR__ . '/help_menu.php';
require __DIR__ . '/job.php';
});
require __DIR__ . '/announcement.php';
+7
View File
@@ -0,0 +1,7 @@
<?php
use Illuminate\Support\Facades\Route;
Route::group(['prefix' => 'job', 'as' => 'job.', 'namespace' => 'Jobs'], function () {
Route::get('/fetch/{job_id}', 'FetchJobResultController@fetch')->name('fetch');
});
+1
View File
@@ -5,6 +5,7 @@ use Illuminate\Support\Facades\Route;
Route::group(['namespace' => 'PackingLists', 'as' => 'packing_list.', 'prefix' => 'packing_list'], function () {
Route::get('/{id}/show', 'FetchPackingListController@fetch')->name('show');
Route::get('/list', 'ListPackingListsController@list')->name('list');
Route::get('/list/job', 'ListPackingListsJobController@list')->name('list.job');
Route::post('/create', 'CreatePackingListController@create')->name('create');
Route::post('/create/deliver', 'CreateDeliverPackingListController@create')->name('create.deliver');