-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.php
37 lines (29 loc) · 1.7 KB
/
routes.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
use EvolutionCMS\Generator\Controllers\Generator\GenerateArticles;
use EvolutionCMS\Generator\Controllers\Generator\GenerateOneArticle;
use EvolutionCMS\Generator\Controllers\Generator\KillProcess;
use EvolutionCMS\Generator\Controllers\IndexController;
use EvolutionCMS\Generator\Controllers\Matrix\CreateUpdateMatrix;
use EvolutionCMS\Generator\Controllers\Matrix\DeleteMatrix;
use EvolutionCMS\Generator\Controllers\Matrix\GetModalFormUpdate;
use EvolutionCMS\Generator\Controllers\Utilities\DeleteChildrensOfDoc;
use EvolutionCMS\Generator\Controllers\Utilities\MassAddDocs;
use Illuminate\Support\Facades\Route;
Route::name('generator::')->group(function () {
Route::match(['get'], '', IndexController::class)->name('index');
Route::prefix('matrix')->name('matrix.')->group(function() {
Route::post('create', CreateUpdateMatrix::class)->name('create');
Route::post('update/{matrix}', CreateUpdateMatrix::class)->name('update');
Route::post('delete/{matrix}',DeleteMatrix::class)->name('delete');
Route::get('modal/edit/{matrix}',GetModalFormUpdate::class)->name('getmodal.edit');
});
Route::prefix('command')->name('command.')->group(function() {
Route::get('onearticle/{matrix}/{option}', GenerateOneArticle::class)->name('onearticle');
Route::post('allarticles/{matrix}', GenerateArticles::class)->name('allarticles');
Route::get('killprocess/{id}', KillProcess::class)->name('killprocess');
});
Route::prefix('utilities')->name('utilities.')->group(function() {
Route::post('delete-childrens', DeleteChildrensOfDoc::class)->name('deletechildrens');
Route::post('mass-add', MassAddDocs::class)->name('massadd');
});
});