Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
4e072167
Commit
4e072167
authored
Feb 28, 2023
by
Lucas Henrique
Browse files
Merge branch 'master' into remover-obrigatoriedade-discente
parents
8a9b62b1
2be90919
Changes
21
Show whitespace changes
Inline
Side-by-side
routes/web.php
View file @
4e072167
...
...
@@ -297,6 +297,17 @@ Route::prefix('naturezas')->group(function () {
Route
::
get
(
'/funcao-participante/{id}/destroy'
,
'ParticipanteController@destroyFuncao'
)
->
name
(
'funcao_participante.destroy'
);
});
Route
::
prefix
(
'cursos'
)
->
name
(
'cursos.'
)
->
group
(
function
(){
//#################### Rotas de cursos #########################
Route
::
get
(
'index'
,
'CursoController@index'
)
->
name
(
'index'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'nova'
,
'CursoController@create'
)
->
name
(
'criar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'salvar'
,
'CursoController@store'
)
->
name
(
'salvar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'editar/{id}'
,
'CursoController@edit'
)
->
name
(
'editar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'editar/{id}'
,
'CursoController@update'
)
->
name
(
'update'
)
->
middleware
(
'checkAdministrador'
);
Route
::
delete
(
'exluir/{id}'
,
'CursoController@destroy'
)
->
name
(
'excluir'
)
->
middleware
(
'checkAdministrador'
);
//Route::get('novo')->name('novo');
});
//############ Evento ##############################################
Route
::
prefix
(
'evento'
)
->
name
(
'evento.'
)
->
group
(
function
()
{
Route
::
get
(
'/criar'
,
'EventoController@create'
)
->
name
(
'criar'
)
->
middleware
(
'checkAdministrador'
);
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment