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');
|
|
|
|
|
|
|
|
Route::get('/oai', ['as' => 'oai', 'uses' => 'Oai\RequestController@index']);
|
|
|
|
|
2018-08-31 14:47:04 +00:00
|
|
|
Route::group(
|
|
|
|
[
|
|
|
|
'namespace' => 'Publish',
|
|
|
|
'middleware' => ['permission:review'],
|
|
|
|
'prefix' => 'publish',
|
|
|
|
'as' => 'publish.'
|
|
|
|
],
|
|
|
|
function () {
|
|
|
|
Route::get('dataset/create-step1', ['as' => 'dataset.create', 'uses' => 'IndexController@createStep1']);
|
|
|
|
Route::post('dataset/store-step1', ['as' => 'dataset.store1', 'uses' => 'IndexController@storeStep1']);
|
2018-08-06 12:30:51 +00:00
|
|
|
|
2018-08-31 14:47:04 +00:00
|
|
|
Route::get('dataset/create-step2', ['as' => 'dataset.create2', 'uses' => 'IndexController@createStep2']);
|
|
|
|
Route::post('dataset/store-step2', ['as' => 'dataset.store2', 'uses' => 'IndexController@storeStep2']);
|
2018-08-06 12:30:51 +00:00
|
|
|
|
2018-08-31 14:47:04 +00:00
|
|
|
Route::get('dataset/create-step3', ['as' => 'dataset.create3', 'uses' => 'IndexController@createStep3']);
|
|
|
|
Route::post('dataset/store', ['as' => 'dataset.store', 'uses' => 'IndexController@store']);
|
|
|
|
}
|
|
|
|
);
|
2018-08-06 12:30:51 +00:00
|
|
|
|
|
|
|
//=================================================setting users====================================================
|
2018-09-04 14:51:04 +00:00
|
|
|
Route::group(
|
|
|
|
[
|
|
|
|
'namespace' => 'Settings\Access',
|
|
|
|
'middleware' => ['permission:settings'],
|
|
|
|
'prefix' => 'settings/access',
|
|
|
|
'as' => 'access.'
|
|
|
|
],
|
|
|
|
function () {
|
|
|
|
//Route::resource('users','UserController');
|
|
|
|
Route::get('user', [
|
|
|
|
'as' => 'user.index', 'uses' => 'UserController@index',
|
|
|
|
]);
|
|
|
|
Route::get('user/create', [
|
|
|
|
'as' => 'user.create', 'uses' => 'UserController@create',
|
|
|
|
]);
|
|
|
|
Route::post('user/store', [
|
|
|
|
'as' => 'user.store', 'uses' => 'UserController@store',
|
|
|
|
]);
|
|
|
|
Route::get('user/edit/{id}', [
|
|
|
|
'as' => 'user.edit', 'uses' => 'UserController@edit',
|
|
|
|
]);
|
|
|
|
Route::patch('user/update/{id}', [
|
|
|
|
'as' => 'user.update', 'uses' => 'UserController@update',
|
|
|
|
]);
|
|
|
|
Route::get('user/destroy/{id}', [
|
|
|
|
'as' => 'user.destroy', 'uses' => 'UserController@destroy',
|
|
|
|
]);
|
|
|
|
|
|
|
|
//Route::resource('users','RoleController');
|
|
|
|
Route::get('role', [
|
|
|
|
'as' => 'role.index', 'uses' => 'RoleController@index',
|
|
|
|
]);
|
|
|
|
Route::get('role/create', [
|
|
|
|
'as' => 'role.create', 'uses' => 'RoleController@create',
|
|
|
|
]);
|
|
|
|
Route::post('role/store', [
|
|
|
|
'as' => 'role.store', 'uses' => 'RoleController@store',
|
|
|
|
]);
|
|
|
|
Route::get('role/edit/{id}', [
|
|
|
|
'as' => 'role.edit', 'uses' => 'RoleController@edit',
|
|
|
|
]);
|
|
|
|
Route::patch('role/update/{id}', [
|
|
|
|
'as' => 'role.update', 'uses' => 'RoleController@update',
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
//=================================================setting dashboard====================================================
|
2018-08-29 15:18:15 +00:00
|
|
|
Route::get('settings/', [
|
2018-08-31 14:47:04 +00:00
|
|
|
'as' => 'settings.dashboard', 'uses' => 'Settings\DashboardController@index',
|
2018-08-29 15:18:15 +00:00
|
|
|
]);
|
|
|
|
|
|
|
|
Route::group(['middleware' => ['permission:settings']], function () {
|
|
|
|
|
|
|
|
//=============================================================================================================
|
|
|
|
//=================================================setting dataset=============================================
|
|
|
|
Route::get('settings/document', [
|
|
|
|
'as' => 'settings.document', 'uses' => 'Settings\DatasetController@index',
|
|
|
|
]);
|
|
|
|
Route::get('settings/document/{id}', [
|
|
|
|
'as' => 'settings.document.show', 'uses' => 'Settings\DatasetController@show',
|
|
|
|
]);
|
|
|
|
Route::get('settings/document/edit/{id}', [
|
|
|
|
'as' => 'settings.document.edit', 'uses' => 'Settings\DatasetController@edit',
|
|
|
|
]);
|
|
|
|
Route::patch('settings/document/update/{id}', [
|
|
|
|
'as' => 'settings.document.update', 'uses' => 'Settings\DatasetController@update',
|
|
|
|
]);
|
|
|
|
//=================================================setting collection=============================================
|
|
|
|
Route::get('/settings/collection', [
|
|
|
|
'as' => 'settings.collection', 'uses' => 'Settings\CollectionController@index',
|
|
|
|
]);
|
|
|
|
Route::get('settings/collection/edit/{id}', [
|
|
|
|
'as' => 'settings.collection.edit', 'uses' => 'Settings\CollectionController@edit',
|
|
|
|
]);
|
|
|
|
Route::patch('settings/collection/edit/{id}', [
|
|
|
|
'as' => 'settings.collection.update', 'uses' => 'Settings\CollectionController@update',
|
|
|
|
]);
|
|
|
|
Route::get('settings/collection/delete/{id}', [
|
|
|
|
'as' => 'settings.collection.delete', 'uses' => 'Settings\CollectionController@delete',
|
|
|
|
]);
|
|
|
|
//==================================================================================================================
|
|
|
|
//=================================================setting project==================================================
|
|
|
|
Route::get('/settings/project', [
|
|
|
|
'as' => 'settings.project', 'uses' => 'Settings\CategoryController@index',
|
|
|
|
]);
|
|
|
|
Route::get('/settings/project/add', [
|
|
|
|
'as' => 'settings.project.add', 'uses' => 'Settings\CategoryController@add',
|
|
|
|
]);
|
|
|
|
Route::post('settings/project/add', [
|
|
|
|
'as' => 'settings.project.post', 'uses' => 'Settings\CategoryController@store',
|
|
|
|
]);
|
|
|
|
Route::get('settings/project/edit/{id}', [
|
|
|
|
'as' => 'settings.project.edit', 'uses' => 'Settings\CategoryController@edit',
|
|
|
|
]);
|
|
|
|
Route::patch('settings/project/edit/{id}', [
|
|
|
|
'as' => 'settings.project.update', 'uses' => 'Settings\CategoryController@update',
|
|
|
|
]);
|
|
|
|
Route::get('settings/project/delete/{id}', [
|
|
|
|
'as' => 'settings.project.delete', 'uses' => 'Settings\CategoryController@delete',
|
|
|
|
]);
|
|
|
|
//===================================================================================================
|
|
|
|
//=================================================setting person====================================
|
|
|
|
Route::get('/settings/person', [
|
|
|
|
'as' => 'settings.person', 'uses' => 'Settings\PersonController@index',
|
|
|
|
]);
|
|
|
|
Route::get('/settings/person/add', [
|
|
|
|
'as' => 'settings.person.add', 'uses' => 'Settings\PersonController@add',
|
|
|
|
]);
|
|
|
|
Route::post('settings/person/add', [
|
|
|
|
'as' => 'settings.person.post', 'uses' => 'Settings\PersonController@store',
|
|
|
|
]);
|
|
|
|
Route::get('settings/person/edit/{id}', [
|
|
|
|
'as' => 'settings.person.edit', 'uses' => 'Settings\PersonController@edit',
|
|
|
|
]);
|
|
|
|
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',
|
|
|
|
]);
|
|
|
|
Route::get('settings/person/down/{id}', [
|
|
|
|
'as' => 'settings.person.down', 'uses' => 'Settings\PersonController@down',
|
|
|
|
]);
|
|
|
|
Route::get('settings/person/up/{id}', [
|
|
|
|
'as' => 'settings.person.up', 'uses' => 'Settings\PersonController@up',
|
|
|
|
]);
|
|
|
|
//=======================================================================================================
|
|
|
|
//=================================================setting license=======================================
|
|
|
|
Route::get('/settings/license', [
|
|
|
|
'as' => 'settings.license', 'uses' => 'Settings\LicenseController@index',
|
|
|
|
]);
|
|
|
|
Route::get('settings/license/edit/{id}', [
|
|
|
|
'as' => 'settings.license.edit', 'uses' => 'Settings\LicenseController@edit',
|
|
|
|
]);
|
|
|
|
Route::patch('settings/license/update/{id}', [
|
|
|
|
'as' => 'settings.license.update', 'uses' => 'Settings\LicenseController@update',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
});
|
|
|
|
|
|
|
|
//=================================================home====================================================
|
|
|
|
Route::get('/', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'home.index', 'uses' => 'HomeController@index',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::get('/contact', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'home.contact', 'uses' => 'HomeController@contact',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::get('/imprint', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'home.imprint', 'uses' => 'HomeController@imprint',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::get('/about', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'home.about', 'uses' => 'HomeController@about',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::get('/news', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'home.news', 'uses' => 'HomeController@news',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::get('/dataset', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'documents', 'uses' => 'PagesController@documents',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::get('/dataset/{id}', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'document.show', 'uses' => 'PagesController@show',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
//=================================================Crawlers====================================================
|
|
|
|
Route::get('sitelinks', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'sitelinks.index', 'uses' => 'SitelinkController@index',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::get('sitelinks/list/{year}', 'SitelinkController@list')->name('sitelinks.list');
|
|
|
|
//=================================================solr search====================================================
|
|
|
|
Route::get('/index', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'search.index', 'uses' => 'SearchController@index',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::post('/queries', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'queries', 'uses' => 'SearchController@search',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::get('/queries/', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'queries1', 'uses' => 'SearchController@search',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::get('/ping', 'SearchController@ping');
|
|
|
|
//=================================================borrow====================================================
|
|
|
|
Route::get('borrow', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'borrow.borrow', 'uses' => 'BorrowController@index',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::post('borrow.post', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'borrow.post', 'uses' => 'BorrowController@store',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::get('laporan', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'borrow.report', 'uses' => 'BorrowController@report',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::get('pengembalian/{id}', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'borrow.pengembalian', 'uses' => 'BorrowController@pengembalian',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::get('perpanjang/{id}', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'borrow.perpanjang', 'uses' => 'BorrowController@perpanjang',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::get('history', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'borrow.history', 'uses' => 'BorrowController@histori',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
2018-08-29 15:18:15 +00:00
|
|
|
|
2018-08-06 12:30:51 +00:00
|
|
|
//==================================================================================================================
|
|
|
|
//=================================================setting shelf====================================================
|
|
|
|
Route::get('/settings/shelf', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'settings.shelf', 'uses' => 'ShelfController@index',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::get('/settings/shelf/add', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'settings.shelf.add', 'uses' => 'ShelfController@add',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::post('settings/shelf/add', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'settings.shelf.post', 'uses' => 'ShelfController@store',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::get('settings/shelf/edit/{id}', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'settings.shelf.edit', 'uses' => 'ShelfController@edit',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::patch('settings/shelf/edit/{id}', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'settings.shelf.update', 'uses' => 'ShelfController@update',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::get('settings/shelf/delete/{id}', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'settings.shelf.delete', 'uses' => 'ShelfController@delete',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
2018-08-29 15:18:15 +00:00
|
|
|
|
2018-08-06 12:30:51 +00:00
|
|
|
//=========================================================================================================
|
|
|
|
//=================================================setting periode=========================================
|
|
|
|
Route::get('/settings/periode', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'settings.periode', 'uses' => 'PeriodeController@index',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::get('settings/periode/edit/{id}', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'settings.periode.edit', 'uses' => 'PeriodeController@edit',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::patch('settings/periode/edit/{id}', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'settings.periode.update', 'uses' => 'PeriodeController@update',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
2018-08-29 15:18:15 +00:00
|
|
|
|
2018-08-06 12:30:51 +00:00
|
|
|
//=============================================================================================================
|
|
|
|
//=================================================setting book================================================
|
|
|
|
Route::get('/settings/book', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'settings.book', 'uses' => 'BookController@index',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::get('/settings/book/add', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'settings.book.add', 'uses' => 'BookController@add',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::post('settings/book/add', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'settings.book.post', 'uses' => 'BookController@store',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::get('settings/book/edit/{id}', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'settings.book.edit', 'uses' => 'BookController@edit',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::patch('settings/book/edit/{id}', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'settings.book.update', 'uses' => 'BookController@update',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
|
|
|
Route::get('settings/book/delete/{id}', [
|
2018-08-29 15:18:15 +00:00
|
|
|
'as' => 'settings.book.delete', 'uses' => 'BookController@delete',
|
2018-08-06 12:30:51 +00:00
|
|
|
]);
|
2018-08-29 15:18:15 +00:00
|
|
|
|
2018-08-06 12:30:51 +00:00
|
|
|
//===============================================================================================================
|
|
|
|
// Route::controllers([
|
|
|
|
// 'auth' => 'Auth\AuthController',
|
|
|
|
// 'password' => 'Auth\PasswordController',
|
|
|
|
// ]);
|
|
|
|
//Auth::routes();
|
2018-09-04 14:51:04 +00:00
|
|
|
$this->get('login', 'Auth\LoginController@showLoginForm')->name('access.login');
|
2018-08-06 12:30:51 +00:00
|
|
|
$this->post('login', 'Auth\LoginController@login');
|
|
|
|
$this->get('logout', 'Auth\LoginController@logout')->name('logout');
|
|
|
|
// Registration Routes...
|
|
|
|
$this->get('register', 'Auth\RegisterController@showRegistrationForm')->name('register');
|
|
|
|
$this->post('register', 'Auth\RegisterController@register');
|
|
|
|
// Password Reset Routes...
|
|
|
|
$this->get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm')->name('password.request');
|
|
|
|
$this->post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email');
|
|
|
|
$this->get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.reset');
|
|
|
|
$this->post('password/reset', 'Auth\ResetPasswordController@reset');
|