Sistema web para crear proyecto web nuevo
This commit is contained in:
8
resources/routes/web/create.php
Normal file
8
resources/routes/web/create.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
use ProVM\Projects\Common\Controller\Web\Create;
|
||||
|
||||
$app->group('/create', function($app) {
|
||||
$app->post('/2', [Create::class, 'step2']);
|
||||
$app->post('/3', [Create::class, 'step3']);
|
||||
$app->get('[/]', Create::class);
|
||||
});
|
24
resources/routes/web/project.php
Normal file
24
resources/routes/web/project.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
use ProVM\Projects\Common\Controller\Web\Project;
|
||||
|
||||
$app->group('/project/{project}', function($app) {
|
||||
$app->group('/views', function($app) {
|
||||
$app->group('/add', function($app) {
|
||||
$app->get('[/]', [Project::class, 'addView']);
|
||||
$app->post('[/]', [Project::class, 'doAddView']);
|
||||
});
|
||||
});
|
||||
$app->group('/controllers', function($app) {
|
||||
$app->group('/add', function($app) {
|
||||
$app->get('[/]', [Project::class, 'addController']);
|
||||
$app->post('[/]', [Project::class, 'doAddController']);
|
||||
});
|
||||
});
|
||||
$app->group('/routes', function($app) {
|
||||
$app->group('/add', function($app) {
|
||||
$app->get('[/]', [Project::class, 'addRoute']);
|
||||
$app->post('[/]', [Project::class, 'doAddRoute']);
|
||||
});
|
||||
});
|
||||
$app->get('[/]', Project::class);
|
||||
});
|
6
resources/routes/web/steps.php
Normal file
6
resources/routes/web/steps.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
use ProVM\Projects\Common\Controller\Web\Home;
|
||||
|
||||
$app->group('/step', function($app) {
|
||||
$app->post('/2', [Home::class, 'step2']);
|
||||
});
|
Reference in New Issue
Block a user