2018-08-06 12:30:51 +00:00
|
|
|
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Web Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
|
2018-08-29 15:18:15 +00:00
|
|
|
*/
|
2018-08-06 12:30:51 +00:00
|
|
|
//Auth::routes();
|
|
|
|
//Route::get('/home', 'HomeController@index')->name('home');
|
2021-06-01 15:32:19 +00:00
|
|
|
$base_domain = config('app.url');
|
|
|
|
$alias_domain = config('app.alias_url');
|
2018-08-06 12:30:51 +00:00
|
|
|
|
2021-06-01 15:32:19 +00:00
|
|
|
|
|
|
|
Route::group([
|
|
|
|
'domain' => 'doi.' . $base_domain,
|
|
|
|
'as' => 'doi'
|
|
|
|
], function () {
|
2021-06-02 09:19:27 +00:00
|
|
|
// $dataset_prefix = config('tethys.datacite_prefix');
|
2021-06-01 15:32:19 +00:00
|
|
|
|
|
|
|
|
2021-06-02 09:19:27 +00:00
|
|
|
Route::get('/{dataset_prefix}/tethys.{id}', [
|
2021-06-02 09:48:25 +00:00
|
|
|
'as' => 'dataset.show', 'uses' => 'Frontend\PagesController@showDoi',
|
2021-06-01 15:32:19 +00:00
|
|
|
]);
|
|
|
|
|
|
|
|
Route::get('/', function () {
|
|
|
|
redirect()->route('frontend.home.index');
|
2021-06-02 07:21:49 +00:00
|
|
|
});
|
2021-06-01 15:32:19 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
// Route::group([
|
|
|
|
// 'domain' => ($base_domain|'www.tethys.at')
|
2021-06-02 07:21:49 +00:00
|
|
|
// ],
|
2021-06-01 15:32:19 +00:00
|
|
|
$appRoutes = function () {
|
|
|
|
|
|
|
|
Route::match(array('GET', 'POST'), '/oai', ['as' => 'oai', 'uses' => 'Oai\RequestController@index']);
|
2018-08-06 12:30:51 +00:00
|
|
|
|
2018-11-21 12:40:34 +00:00
|
|
|
//Route::get('/', 'LocalizationController@index');
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get(
|
|
|
|
'setlocale/{lang}',
|
|
|
|
[
|
|
|
|
'as' => 'setlocale', //name()
|
|
|
|
'uses' => 'Frontend\LocalizationController@setLocale',
|
|
|
|
]
|
|
|
|
);
|
2018-11-21 12:40:34 +00:00
|
|
|
|
2019-09-13 11:28:28 +00:00
|
|
|
//=============================================================================================================
|
|
|
|
//=================================================file download=============================================
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('file/download/{id}', [
|
|
|
|
'as' => 'file.download', 'uses' => 'Settings\FileController@download',
|
|
|
|
]);
|
2019-09-13 11:28:28 +00:00
|
|
|
|
2018-10-11 14:49:08 +00:00
|
|
|
//=================================================publish datasets================================================
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::group(
|
|
|
|
[
|
|
|
|
'namespace' => 'Publish',
|
|
|
|
// 'middleware' => ['permission:publish'],
|
|
|
|
// 'middleware' => ['role:administrator|reviewer|editor'],
|
|
|
|
'prefix' => 'publish',
|
|
|
|
'as' => 'publish.',
|
|
|
|
],
|
|
|
|
function () {
|
|
|
|
Route::get('dataset', [
|
|
|
|
'as' => 'dataset.index', 'uses' => 'IndexController@index',
|
|
|
|
]);
|
|
|
|
Route::get('dataset/create-step1', [
|
|
|
|
'middleware' => ['permission:dataset-submit'],
|
|
|
|
'as' => 'dataset.create',
|
|
|
|
'uses' => 'IndexController@createStep1',
|
|
|
|
]);
|
|
|
|
// Route::post('dataset/store-step1', ['as' => 'dataset.store1', 'uses' => 'IndexController@storeStep1']);
|
|
|
|
|
|
|
|
// Route::get('dataset/create-step2', ['as' => 'dataset.create2', 'uses' => 'IndexController@createStep2']);
|
|
|
|
// Route::post('dataset/store-step2', ['as' => 'dataset.store2', 'uses' => 'IndexController@storeStep2']);
|
|
|
|
|
|
|
|
// Route::get('dataset/create-step3', ['as' => 'dataset.create3', 'uses' => 'IndexController@createStep3']);
|
|
|
|
Route::post('dataset/store', [
|
|
|
|
'middleware' => ['permission:dataset-submit'],
|
|
|
|
'as' => 'dataset.store',
|
|
|
|
'uses' => 'IndexController@store',
|
|
|
|
]);
|
|
|
|
|
|
|
|
Route::get('workflow/submit/index', [
|
|
|
|
'middleware' => ['permission:dataset-list'],
|
|
|
|
'as' => 'workflow.submit.index', 'uses' => 'SubmitController@index',
|
|
|
|
]);
|
|
|
|
Route::get('workflow/submit/edit/{id}', [
|
|
|
|
'middleware' => ['permission:dataset-submit', 'isUserDatasetAdmin:true'],
|
|
|
|
'as' => 'workflow.submit.edit', 'uses' => 'SubmitController@edit',
|
|
|
|
]);
|
|
|
|
Route::post('workflow/submit/edit/{id}', [
|
|
|
|
'middleware' => ['permission:dataset-submit', 'isUserDatasetAdmin:true'],
|
|
|
|
'as' => 'workflow.submit.update', 'uses' => 'SubmitController@update',
|
|
|
|
]);
|
|
|
|
Route::get('workflow/submit/release/{id}', [
|
|
|
|
'middleware' => ['permission:dataset-submit', 'isUserDatasetAdmin:true'],
|
|
|
|
'as' => 'workflow.submit.release', 'uses' => 'SubmitController@release',
|
|
|
|
]);
|
|
|
|
Route::post('workflow/submit/release/{id}', [
|
|
|
|
'middleware' => ['permission:dataset-submit', 'isUserDatasetAdmin:true'],
|
|
|
|
'as' => 'workflow.submit.releaseUpdate', 'uses' => 'SubmitController@releaseUpdate',
|
|
|
|
]);
|
|
|
|
Route::get('workflow/submit/delete/{id}', [
|
|
|
|
'middleware' => ['isUserDatasetAdmin:true'],
|
|
|
|
'as' => 'workflow.submit.delete', 'uses' => 'SubmitController@delete',
|
|
|
|
]);
|
|
|
|
Route::post('workflow/submit/delete/{id}', [
|
|
|
|
'middleware' => ['isUserDatasetAdmin:true'],
|
|
|
|
'as' => 'workflow.submit.deleteUpdate', 'uses' => 'SubmitController@deleteUpdate',
|
|
|
|
]);
|
|
|
|
|
|
|
|
//editor
|
|
|
|
Route::get('workflow/editor/index', [
|
|
|
|
'middleware' => ['permission:dataset-editor-list'],
|
|
|
|
'as' => 'workflow.editor.index', 'uses' => 'EditorController@index',
|
|
|
|
]);
|
|
|
|
Route::get('workflow/editor/receive/{id}', [
|
|
|
|
'middleware' => ['permission:dataset-receive'],
|
|
|
|
'as' => 'workflow.editor.receive', 'uses' => 'EditorController@receive',
|
|
|
|
]);
|
|
|
|
Route::post('workflow/editor/receive/{id}', [
|
|
|
|
'middleware' => ['permission:dataset-receive'],
|
|
|
|
'as' => 'workflow.editor.receiveUpdate', 'uses' => 'EditorController@receiveUpdate',
|
|
|
|
]);
|
|
|
|
Route::get('workflow/editor/edit/{id}', [
|
|
|
|
'middleware' => ['permission:dataset-editor-update'],
|
|
|
|
'as' => 'workflow.editor.edit', 'uses' => 'EditorController@edit',
|
|
|
|
]);
|
|
|
|
Route::post('workflow/editor/edit/{id}', [
|
|
|
|
'middleware' => ['permission:dataset-editor-update'],
|
|
|
|
'as' => 'workflow.editor.update', 'uses' => 'EditorController@update',
|
|
|
|
]);
|
|
|
|
Route::get('workflow/editor/file/download/{id}', [
|
|
|
|
'middleware' => ['permission:dataset-editor-update'],
|
|
|
|
'as' => 'workflow.editor.file.download', 'uses' => 'EditorController@download',
|
|
|
|
]);
|
|
|
|
Route::get('workflow/editor/approve/{id}', [
|
|
|
|
'middleware' => ['permission:dataset-approve'],
|
|
|
|
'as' => 'workflow.editor.approve', 'uses' => 'EditorController@approve',
|
|
|
|
]);
|
|
|
|
Route::post('workflow/editor/approve/{id}', [
|
|
|
|
'middleware' => ['permission:dataset-approve'],
|
|
|
|
'as' => 'workflow.editor.approveUpdate', 'uses' => 'EditorController@approveUpdate',
|
|
|
|
]);
|
|
|
|
Route::get('workflow/editor/reject/{id}', [
|
|
|
|
'middleware' => ['permission:dataset-editor-reject'],
|
|
|
|
'as' => 'workflow.editor.reject', 'uses' => 'EditorController@reject',
|
|
|
|
]);
|
|
|
|
Route::post('workflow/editor/reject/{id}', [
|
|
|
|
'middleware' => ['permission:dataset-editor-reject'],
|
|
|
|
'as' => 'workflow.editor.rejectUpdate', 'uses' => 'EditorController@rejectUpdate',
|
|
|
|
]);
|
|
|
|
Route::get('workflow/editor/publish/{id}', [
|
|
|
|
'middleware' => ['permission:dataset-publish'],
|
|
|
|
'as' => 'workflow.editor.publish', 'uses' => 'EditorController@publish',
|
|
|
|
]);
|
|
|
|
Route::post('workflow/editor/publish/{id}', [
|
|
|
|
'middleware' => ['permission:dataset-publish'],
|
|
|
|
'as' => 'workflow.editor.publishUpdate', 'uses' => 'EditorController@publishUpdate',
|
|
|
|
]);
|
|
|
|
Route::get('workflow/editor/doi/{id}', [
|
|
|
|
'middleware' => ['permission:dataset-publish'],
|
|
|
|
'as' => 'workflow.editor.doi', 'uses' => 'EditorController@doiCreate',
|
|
|
|
]);
|
|
|
|
Route::post('workflow/editor/doi/{publish_id}', [
|
|
|
|
'middleware' => ['permission:dataset-publish'],
|
|
|
|
'as' => 'workflow.editor.doiStore', 'uses' => 'EditorController@doiStore',
|
|
|
|
]);
|
|
|
|
|
2021-06-02 10:07:51 +00:00
|
|
|
//doi update list for admin:
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('workflow/doi/index', [
|
2021-06-02 10:07:51 +00:00
|
|
|
'middleware' => ['permission:settings'],
|
2021-06-01 15:32:19 +00:00
|
|
|
'as' => 'workflow.doi.index', 'uses' => 'DoiController@index',
|
|
|
|
]);
|
|
|
|
Route::get('workflow/doi/edit/{id}', [
|
2021-06-02 10:07:51 +00:00
|
|
|
'middleware' => ['permission:settings'],
|
2021-06-01 15:32:19 +00:00
|
|
|
'as' => 'workflow.doi.edit', 'uses' => 'DoiController@edit',
|
|
|
|
]);
|
|
|
|
Route::post('workflow/doi/update/{publish_id}', [
|
2021-06-02 10:07:51 +00:00
|
|
|
'middleware' => ['permission:settings'],
|
2021-06-01 15:32:19 +00:00
|
|
|
'as' => 'workflow.doi.update', 'uses' => 'DoiController@update',
|
|
|
|
]);
|
|
|
|
|
|
|
|
//reviewer
|
|
|
|
Route::get('workflow/review/index', [
|
|
|
|
'middleware' => ['permission:dataset-review-list'],
|
|
|
|
'as' => 'workflow.review.index', 'uses' => 'ReviewController@index',
|
|
|
|
]);
|
|
|
|
Route::get('workflow/review/{id}', [
|
|
|
|
'middleware' => ['permission:dataset-review'],
|
|
|
|
'as' => 'workflow.review.review', 'uses' => 'ReviewController@review',
|
|
|
|
]);
|
|
|
|
Route::post('workflow/review/{id}', [
|
|
|
|
'middleware' => ['permission:dataset-review'],
|
|
|
|
'as' => 'workflow.review.reviewUpdate', 'uses' => 'ReviewController@reviewUpdate',
|
|
|
|
]);
|
|
|
|
Route::get('workflow/review/reject/{id}', [
|
|
|
|
'middleware' => ['permission:dataset-review-reject'],
|
|
|
|
'as' => 'workflow.review.reject', 'uses' => 'ReviewController@reject',
|
|
|
|
]);
|
|
|
|
Route::post('workflow/review/reject/{id}', [
|
|
|
|
'middleware' => ['permission:dataset-review-reject'],
|
|
|
|
'as' => 'workflow.review.rejectUpdate', 'uses' => 'ReviewController@rejectUpdate',
|
|
|
|
]);
|
|
|
|
|
|
|
|
//publisher
|
|
|
|
Route::get('workflow/publish/index', [
|
|
|
|
'middleware' => ['permission:dataset-publish-list'],
|
|
|
|
'as' => 'workflow.publish.index', 'uses' => 'PublishController@index',
|
|
|
|
]);
|
|
|
|
// Route::get('workflow/publish/{id}', [
|
|
|
|
// 'middleware' => ['permission:dataset-publish'],
|
|
|
|
// 'as' => 'workflow.publish.publish', 'uses' => 'PublishController@publish',
|
|
|
|
// ]);
|
|
|
|
// Route::post('workflow/publish/{id}', [
|
|
|
|
// 'middleware' => ['permission:dataset-publish'],
|
|
|
|
// 'as' => 'workflow.publish.publishUpdate', 'uses' => 'PublishController@publishUpdate',
|
|
|
|
// ]);
|
|
|
|
|
|
|
|
Route::get('workflow/changestate/{id}/changestate/{targetState}', [
|
|
|
|
'as' => 'review.changestate', 'uses' => 'SubmitController@changestate',
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
);
|
2018-08-06 12:30:51 +00:00
|
|
|
|
2021-06-01 15:32:19 +00:00
|
|
|
//=================================================setting users====================================================
|
|
|
|
Route::group(
|
|
|
|
[
|
|
|
|
'namespace' => 'Settings\Access',
|
|
|
|
'prefix' => 'settings/access',
|
|
|
|
'as' => 'access.',
|
|
|
|
],
|
|
|
|
function () {
|
|
|
|
//Route::resource('users','UserController');
|
|
|
|
Route::get('user', [
|
|
|
|
'as' => 'user.index', 'uses' => 'UserController@index', 'middleware' => ['permission:settings'],
|
|
|
|
]);
|
|
|
|
Route::get('user/create', [
|
|
|
|
'as' => 'user.create', 'uses' => 'UserController@create', 'middleware' => ['permission:settings'],
|
|
|
|
]);
|
|
|
|
Route::post('user/store', [
|
|
|
|
'as' => 'user.store', 'uses' => 'UserController@store', 'middleware' => ['permission:settings'],
|
|
|
|
]);
|
|
|
|
Route::get('user/edit/{id}', [
|
|
|
|
'as' => 'user.edit', 'uses' => 'UserController@edit', 'middleware' => ['auth'],
|
|
|
|
]);
|
|
|
|
Route::patch('user/update/{id}', [
|
|
|
|
'as' => 'user.update', 'uses' => 'UserController@update', 'middleware' => ['auth'],
|
|
|
|
]);
|
|
|
|
Route::get('user/destroy/{id}', [
|
|
|
|
'as' => 'user.destroy', 'uses' => 'UserController@destroy', 'middleware' => ['permission:settings'],
|
|
|
|
]);
|
|
|
|
|
|
|
|
//Route::resource('users','RoleController');
|
|
|
|
Route::get('role', [
|
|
|
|
'as' => 'role.index', 'uses' => 'RoleController@index', 'middleware' => ['permission:settings'],
|
|
|
|
]);
|
|
|
|
Route::get('role/create', [
|
|
|
|
'as' => 'role.create', 'uses' => 'RoleController@create', 'middleware' => ['permission:settings'],
|
|
|
|
]);
|
|
|
|
Route::post('role/store', [
|
|
|
|
'as' => 'role.store', 'uses' => 'RoleController@store', 'middleware' => ['permission:settings'],
|
|
|
|
]);
|
|
|
|
Route::get('role/edit/{id}', [
|
|
|
|
'as' => 'role.edit', 'uses' => 'RoleController@edit', 'middleware' => ['permission:settings'],
|
|
|
|
]);
|
|
|
|
Route::patch('role/update/{id}', [
|
|
|
|
'as' => 'role.update', 'uses' => 'RoleController@update', 'middleware' => ['permission:settings'],
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
);
|
2018-08-06 12:30:51 +00:00
|
|
|
|
2021-06-01 15:32:19 +00:00
|
|
|
/*
|
|
|
|
* CMS Pages Management=============================================================================
|
|
|
|
*/
|
|
|
|
Route::group(
|
|
|
|
[
|
|
|
|
'middleware' => ['permission:settings'],
|
|
|
|
'namespace' => 'Settings',
|
|
|
|
'prefix' => 'settings',
|
|
|
|
'as' => 'settings.',
|
|
|
|
],
|
|
|
|
function () {
|
|
|
|
//Route::resource('page', 'PageController', ['except' => ['show', 'update']]);
|
|
|
|
Route::get('page', [
|
|
|
|
'as' => 'page.index', 'uses' => 'PageController@index',
|
|
|
|
]);
|
|
|
|
Route::get('page/edit/{page}', [
|
|
|
|
'as' => 'page.edit', 'uses' => 'PageController@edit',
|
|
|
|
]);
|
|
|
|
Route::patch('page/update/{id}', [
|
|
|
|
'as' => 'page.update', 'uses' => 'PageController@update',
|
|
|
|
]);
|
|
|
|
// //For DataTables
|
|
|
|
Route::get('pages/get', ['uses' => 'PagesTableController@get'])->name('page.get');
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
// //=============================================================================================================
|
|
|
|
// //=================================================setting file=============================================
|
|
|
|
Route::get('settings/file/download/{id}', [
|
|
|
|
'middleware' => ['isUserFileOwner'],
|
|
|
|
'as' => 'settings.file.download', 'uses' => 'Settings\FileController@download',
|
|
|
|
]);
|
2019-04-03 16:06:10 +00:00
|
|
|
|
2021-06-01 15:32:19 +00:00
|
|
|
//=================================================setting home - dashboard=======================================
|
|
|
|
Route::get('settings/', [
|
|
|
|
'as' => 'settings.dashboard', 'uses' => 'Settings\DashboardController@index',
|
|
|
|
]);
|
|
|
|
|
|
|
|
Route::group(['middleware' => ['permission:settings']], function () {
|
|
|
|
|
|
|
|
//=============================================================================================================
|
|
|
|
//=================================================setting dataset=============================================
|
|
|
|
Route::get('settings/document', [
|
|
|
|
'as' => 'settings.document', 'uses' => 'Settings\DatasetController@index',
|
2019-04-03 16:06:10 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('settings/document/{id}', [
|
|
|
|
'as' => 'settings.document.show', 'uses' => 'Settings\DatasetController@show',
|
2019-08-27 09:15:23 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('settings/document/edit/{id}', [
|
|
|
|
'as' => 'settings.document.edit', 'uses' => 'Settings\DatasetController@edit',
|
2019-08-27 09:15:23 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::patch('settings/document/update/{id}', [
|
|
|
|
'as' => 'settings.document.update', 'uses' => 'Settings\DatasetController@update',
|
2019-04-03 16:06:10 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
// Route::get('settings/file/download/{id}', [
|
|
|
|
// 'as' => 'settings.file.download', 'uses' => 'Settings\DatasetController@download',
|
|
|
|
// ]);
|
|
|
|
|
|
|
|
//=================================================setting mimetype=============================================
|
|
|
|
Route::get('/settings/mimetype', [
|
|
|
|
'as' => 'settings.mimetype.index', 'uses' => 'Settings\MimetypeController@index',
|
2019-04-08 16:31:40 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
|
|
|
|
// Route::get('/settings/collection/create', [
|
|
|
|
// 'as' => 'settings.collection.create', 'uses' => 'Settings\CollectionController@create',
|
|
|
|
// ]);
|
|
|
|
// Route::post('settings/collection/store', [
|
|
|
|
// 'as' => 'settings.collection.store', 'uses' => 'Settings\CollectionController@store',
|
|
|
|
// ]);
|
|
|
|
|
|
|
|
// Route::get('settings/collection/edit/{id}', [
|
|
|
|
// 'as' => 'settings.collection.edit', 'uses' => 'Settings\CollectionController@edit',
|
|
|
|
// ]);
|
|
|
|
Route::patch('settings/mimetype/update', [
|
|
|
|
'as' => 'settings.mimetype.update', 'uses' => 'Settings\MimetypeController@update',
|
|
|
|
]);
|
|
|
|
// Route::get('settings/collection/show/{collection}', [
|
|
|
|
// 'as' => 'settings.collection.show', 'uses' => 'Settings\CollectionController@show',
|
|
|
|
// ]);
|
|
|
|
// Route::get('settings/collection/delete/{id}', [
|
|
|
|
// 'as' => 'settings.collection.delete', 'uses' => 'Settings\CollectionController@delete',
|
|
|
|
// ]);
|
|
|
|
Route::get('settings/mimetype/down/{id}', [
|
|
|
|
'as' => 'settings.mimetype.down', 'uses' => 'Settings\MimetypeController@down',
|
2019-08-27 09:15:23 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('settings/mimetype/up/{id}', [
|
|
|
|
'as' => 'settings.mimetype.up', 'uses' => 'Settings\MimetypeController@up',
|
2019-04-08 16:31:40 +00:00
|
|
|
]);
|
2019-09-13 11:28:28 +00:00
|
|
|
|
2021-06-01 15:32:19 +00:00
|
|
|
//=================================================setting collection=============================================
|
|
|
|
Route::get('/settings/collection', [
|
|
|
|
'as' => 'settings.collection.index', 'uses' => 'Settings\CollectionController@index',
|
2019-04-09 17:05:03 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
|
|
|
|
Route::get('/settings/collection/create', [
|
|
|
|
'as' => 'settings.collection.create', 'uses' => 'Settings\CollectionController@create',
|
2019-04-11 16:52:10 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::post('settings/collection/store', [
|
|
|
|
'as' => 'settings.collection.store', 'uses' => 'Settings\CollectionController@store',
|
2019-04-11 16:52:10 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
|
|
|
|
Route::get('settings/collection/edit/{id}', [
|
|
|
|
'as' => 'settings.collection.edit', 'uses' => 'Settings\CollectionController@edit',
|
2019-04-11 16:52:10 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::patch('settings/collection/edit/{id}', [
|
|
|
|
'as' => 'settings.collection.update', 'uses' => 'Settings\CollectionController@update',
|
2020-01-23 16:52:26 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('settings/collection/show/{collection}', [
|
|
|
|
'as' => 'settings.collection.show', 'uses' => 'Settings\CollectionController@show',
|
2019-04-11 16:52:10 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('settings/collection/delete/{id}', [
|
|
|
|
'as' => 'settings.collection.delete', 'uses' => 'Settings\CollectionController@delete',
|
2019-04-11 16:52:10 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
//=================================================setting collection_role=========================================
|
|
|
|
Route::get('/settings/collectionrole', [
|
|
|
|
'as' => 'settings.collectionrole.index', 'uses' => 'Settings\CollectionRoleController@index',
|
2019-05-21 16:28:18 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
|
|
|
|
Route::get('settings/collectionrole/edit/{id}', [
|
|
|
|
'as' => 'settings.collectionrole.edit', 'uses' => 'Settings\CollectionRoleController@edit',
|
2019-05-21 16:28:18 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::patch('settings/collectionrole/update/{id}', [
|
|
|
|
'as' => 'settings.collectionrole.update', 'uses' => 'Settings\CollectionRoleController@update',
|
2019-05-28 17:02:21 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('settings/collectionrole/show/{collectionrole}', [
|
|
|
|
'as' => 'settings.collectionrole.show', 'uses' => 'Settings\CollectionRoleController@show',
|
2019-05-28 17:02:21 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('settings/collectionrole/hide/{id}', [
|
|
|
|
'as' => 'settings.collectionrole.hide', 'uses' => 'Settings\CollectionRoleController@hide',
|
2021-05-18 11:17:29 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('settings/collectionrole/up/{id}', [
|
|
|
|
'as' => 'settings.collectionrole.up', 'uses' => 'Settings\CollectionRoleController@up',
|
2021-05-18 11:17:29 +00:00
|
|
|
]);
|
2019-04-11 16:52:10 +00:00
|
|
|
|
2021-06-01 15:32:19 +00:00
|
|
|
//==================================================================================================================
|
|
|
|
//=================================================setting project==================================================
|
|
|
|
Route::get('/settings/project', [
|
|
|
|
'as' => 'settings.project', 'uses' => 'Settings\CategoryController@index',
|
2021-05-19 13:10:46 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('/settings/project/add', [
|
|
|
|
'as' => 'settings.project.add', 'uses' => 'Settings\CategoryController@add',
|
2021-05-19 13:10:46 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::post('settings/project/add', [
|
|
|
|
'as' => 'settings.project.post', 'uses' => 'Settings\CategoryController@store',
|
2021-05-19 13:10:46 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('settings/project/edit/{id}', [
|
|
|
|
'as' => 'settings.project.edit', 'uses' => 'Settings\CategoryController@edit',
|
2019-04-09 17:05:03 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::patch('settings/project/edit/{id}', [
|
|
|
|
'as' => 'settings.project.update', 'uses' => 'Settings\CategoryController@update',
|
2019-04-17 14:01:38 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('settings/project/delete/{id}', [
|
|
|
|
'as' => 'settings.project.delete', 'uses' => 'Settings\CategoryController@delete',
|
2019-04-17 14:01:38 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
//===================================================================================================
|
|
|
|
//=================================================setting person====================================
|
|
|
|
Route::get('/settings/person', [
|
|
|
|
'as' => 'settings.person', 'uses' => 'Settings\PersonController@index',
|
2019-05-16 16:19:52 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('/settings/person/add', [
|
|
|
|
'as' => 'settings.person.add', 'uses' => 'Settings\PersonController@add',
|
2019-05-16 16:19:52 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::post('settings/person/add', [
|
|
|
|
'as' => 'settings.person.post', 'uses' => 'Settings\PersonController@store',
|
2019-04-17 17:02:00 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('settings/person/edit/{id}', [
|
|
|
|
'as' => 'settings.person.edit', 'uses' => 'Settings\PersonController@edit',
|
2019-04-03 16:06:10 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::patch('settings/person/edit/{id}', [
|
|
|
|
'as' => 'settings.person.update', 'uses' => 'Settings\PersonController@update',
|
|
|
|
]);
|
|
|
|
Route::get('settings/person/delete/{id}', [
|
|
|
|
'as' => 'settings.person.delete', 'uses' => 'Settings\PersonController@delete',
|
2018-09-04 14:51:04 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('settings/person/down/{id}', [
|
|
|
|
'as' => 'settings.person.down', 'uses' => 'Settings\PersonController@down',
|
2018-09-04 14:51:04 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('settings/person/up/{id}', [
|
|
|
|
'as' => 'settings.person.up', 'uses' => 'Settings\PersonController@up',
|
2018-09-04 14:51:04 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
//=======================================================================================================
|
|
|
|
//=================================================setting license=======================================
|
|
|
|
Route::get('/settings/license', [
|
|
|
|
'as' => 'settings.license', 'uses' => 'Settings\LicenseController@index',
|
2018-09-04 14:51:04 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('settings/license/edit/{id}', [
|
|
|
|
'as' => 'settings.license.edit', 'uses' => 'Settings\LicenseController@edit',
|
2018-09-04 14:51:04 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::patch('settings/license/update/{id}', [
|
|
|
|
'as' => 'settings.license.update', 'uses' => 'Settings\LicenseController@update',
|
2018-09-04 14:51:04 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
});
|
2018-09-04 14:51:04 +00:00
|
|
|
|
2021-06-01 15:32:19 +00:00
|
|
|
//=================================================home frontend controller=======================================
|
|
|
|
/*
|
|
|
|
* Frontend Routes
|
|
|
|
* Namespaces indicate folder structure
|
|
|
|
*/
|
|
|
|
Route::group(['namespace' => 'Frontend', 'as' => 'frontend.'], function () {
|
|
|
|
// includeRouteFiles(__DIR__.'/Frontend/');
|
|
|
|
Route::get('/test', [
|
|
|
|
'as' => 'home.index', 'uses' => 'HomeController@test',
|
2018-09-04 14:51:04 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('/', [
|
|
|
|
'as' => 'home.index', 'uses' => 'HomeController@index',
|
2018-09-04 14:51:04 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('/contact', [
|
|
|
|
'as' => 'home.contact', 'uses' => 'HomeController@contact',
|
2018-09-04 14:51:04 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('/imprint', [
|
|
|
|
'as' => 'home.imprint', 'uses' => 'HomeController@imprint',
|
2018-09-04 14:51:04 +00:00
|
|
|
]);
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('/intro', [
|
|
|
|
'as' => 'home.intro', 'uses' => 'HomeController@intro',
|
|
|
|
]);
|
|
|
|
Route::get('/news', [
|
|
|
|
'as' => 'home.news', 'uses' => 'HomeController@news',
|
|
|
|
]);
|
|
|
|
Route::get('/services', [
|
|
|
|
'as' => 'home.services', 'uses' => 'HomeController@services',
|
|
|
|
]);
|
|
|
|
Route::get('/help', [
|
|
|
|
'as' => 'home.help', 'uses' => 'HomeController@help',
|
|
|
|
]);
|
|
|
|
Route::get('/info', [
|
|
|
|
'as' => 'home.php_info', 'uses' => 'HomeController@phpInfo',
|
2018-09-04 14:51:04 +00:00
|
|
|
]);
|
2018-10-04 14:41:29 +00:00
|
|
|
|
2021-06-01 15:32:19 +00:00
|
|
|
//=================================================Crawlers====================================================
|
|
|
|
Route::get('sitelinks', [
|
|
|
|
'as' => 'sitelinks.index', 'uses' => 'SitelinkController@index',
|
|
|
|
]);
|
|
|
|
Route::get('sitelinks/list/{year}', 'SitelinkController@listDocs')->name('sitelinks.list');
|
2018-10-04 14:41:29 +00:00
|
|
|
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('/dataset', [
|
|
|
|
'as' => 'datasets', 'uses' => 'PagesController@datasets',
|
|
|
|
]);
|
|
|
|
Route::get('/dataset/{id}', [
|
|
|
|
'as' => 'dataset.show', 'uses' => 'PagesController@show',
|
|
|
|
]);
|
2018-10-04 14:41:29 +00:00
|
|
|
|
2021-06-01 15:32:19 +00:00
|
|
|
/*
|
|
|
|
* Show pages
|
|
|
|
*/
|
|
|
|
Route::get('pages/{slug}', 'HomeController@showPage')->name('pages.show');
|
2018-08-06 12:30:51 +00:00
|
|
|
|
2021-06-01 15:32:19 +00:00
|
|
|
//=================================================solr search====================================================
|
|
|
|
// Route::get('/index', [
|
|
|
|
// 'as' => 'search.index', 'uses' => 'SearchController@index',
|
|
|
|
// ]);
|
|
|
|
Route::post('/queries', [
|
|
|
|
'as' => 'queries', 'uses' => 'SearchController@search',
|
|
|
|
]);
|
|
|
|
Route::get('/queries/', [
|
|
|
|
'as' => 'queries1', 'uses' => 'SearchController@search',
|
|
|
|
]);
|
|
|
|
// Route::get('/ping', 'SearchController@ping');
|
|
|
|
Route::get('/ping', 'SolariumController@ping');
|
|
|
|
// Route::get('/search', 'SolariumController@search');
|
|
|
|
Route::get('/search', [
|
|
|
|
'as' => 'search.index', 'uses' => 'SolariumController@index',
|
|
|
|
]);
|
|
|
|
});
|
2018-09-06 15:58:54 +00:00
|
|
|
|
|
|
|
//====================================authentication===========================================================================
|
2018-08-06 12:30:51 +00:00
|
|
|
// Route::controllers([
|
|
|
|
// 'auth' => 'Auth\AuthController',
|
|
|
|
// 'password' => 'Auth\PasswordController',
|
|
|
|
// ]);
|
2019-10-21 16:37:08 +00:00
|
|
|
// Auth::routes();
|
|
|
|
// Authentication Routes...
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('login', 'Auth\LoginController@showLoginForm')->name('login');
|
|
|
|
Route::post('login', 'Auth\LoginController@login');
|
|
|
|
Route::get('logout', 'Auth\LoginController@logout')->name('logout');
|
2019-10-21 16:37:08 +00:00
|
|
|
|
|
|
|
// // Registration Routes...
|
|
|
|
// Route::get('register', 'Auth\RegisterController@showRegistrationForm')->name('register');
|
|
|
|
// Route::post('register', 'Auth\RegisterController@register');
|
|
|
|
// // // Password Reset Routes...
|
|
|
|
// Route::get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm')->name('password.request');
|
|
|
|
// Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email');
|
|
|
|
// Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.reset');
|
2019-11-21 17:43:56 +00:00
|
|
|
// Route::post('password/reset', 'Auth\ResetPasswordController@reset');
|
|
|
|
|
2021-06-01 15:32:19 +00:00
|
|
|
Route::get('refresh-csrf', function () {
|
|
|
|
return csrf_token();
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
Route::group(array('domain' => $base_domain), $appRoutes);
|
|
|
|
if ($alias_domain) {
|
|
|
|
Route::group(array('domain' => $alias_domain), $appRoutes);
|
|
|
|
}
|