mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-26 16:04:23 +00:00
05b1aedda5
# Conflicts: # app/Classes/Modules/Announcements/DataTransferObjects/AnnouncementObject.php # app/Classes/Modules/Segments/ControllersLogic/CreateSegmentLogic.php # app/Classes/Modules/Segments/ControllersLogic/DeleteSegmentLogic.php # app/Classes/Modules/Segments/DataTransferObjects/SegmentObject.php # app/Classes/Modules/Segments/Services/CreatesSegment.php # app/Classes/Modules/Segments/Standards/Rules/CanCreateSegment.php # app/Classes/Modules/Segments/Standards/Rules/CanDeleteSegment.php # app/Classes/Modules/Segments/Standards/Validators/SegmentValidation.php # app/Http/Controllers/Announcements/AssignAnnouncementToSegmentController.php # app/Http/Controllers/Announcements/ListAnnouncementsController.php # app/Http/Controllers/Announcements/RemoveSegmentFromAnnouncementController.php # app/Http/Controllers/Announcements/UpdateAnnouncementController.php # app/Http/Controllers/Segments/CreateSegmentController.php # app/Http/Controllers/Segments/DeleteSegmentController.php # routes/announcement.php # routes/api.php # routes/segment.php # routes/web.php
35 lines
1.9 KiB
PHP
35 lines
1.9 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::group(['prefix' => 'company', 'as' => 'company.', 'namespace' => 'Companies'], function () {
|
|
Route::get('/{id}/show', 'FetchCompanyController@fetch')->name('show');
|
|
Route::get('/list', 'ListCompaniesController@list')->name('list');
|
|
Route::post('/create', 'CreateCompanyController@create')->name('create');
|
|
Route::put('/update/{id}', 'UpdateCompanyController@update')->name('update');
|
|
Route::delete('/delete/{id}', 'DeleteCompanyController@destroy')->name('delete');
|
|
|
|
Route::post('/team/create', 'AddNewMemberController@create')->name('team.create');
|
|
|
|
Route::group(['prefix' => '{id}/segment', 'as' => 'segment.'], function () {
|
|
Route::post('/assign', 'AssignCompanyToSegmentController@assign')->name('assign');
|
|
Route::delete('/detach/{segment_id}', 'RemoveCompanyFromSegmentController@detach')->name('detach');
|
|
});
|
|
|
|
Route::group(['prefix' => '{id}/connection/{company_connection_id}', 'as' => 'connection.'], function () {
|
|
Route::post('/assign', 'AssignCompanyConnectionToConnectionSegmentController@assign')->name('assign');
|
|
Route::delete('/detach/{segment_id}', 'RemoveCompanyConnectionFromConnectionSegmentController@detach')->name('detach');
|
|
});
|
|
|
|
Route::group(['prefix' => '{id}/currency', 'as' => 'currency.'], function () {
|
|
Route::post('/convert', 'FetchCompanyBookingQuotationController@fetch')->name('convert');
|
|
});
|
|
|
|
Route::put('supplier/{id}/currencies/update', 'UpdateSupplierCurrenciesController@update')->name('supplier.currencies.update');
|
|
|
|
Route::group(['prefix' => '{id}/identification', 'as' => 'identification.'], function () {
|
|
Route::post('/create', 'CreateIdentificationDocumentController@create')->name('create');
|
|
Route::put('/{document_id}/approval/{status}', 'ApproveIdentificationDocumentController@approve')->where('status', 'approve|reject')->name('approval');
|
|
});
|
|
|
|
}); |