'admin'], function () { Route::get('/', 'Admin\DefaultController@index')->name('admin'); Route::post('settings/save', 'Admin\DefaultController@saveSettings')->name('admin.saveSettings'); Route::post('settings/test-email', 'Admin\DefaultController@testMailSettings')->name('admin.testMailSettings'); Route::get('settings', 'Admin\DefaultController@settings')->name('admin.settings'); // Album management Route::get('albums/{id}/analyse', 'Admin\AlbumController@analyse')->name('albums.analyse'); Route::get('albums/{id}/delete', 'Admin\AlbumController@delete')->name('albums.delete'); Route::resource('albums', 'Admin\AlbumController'); // Photo management Route::post('photos/analyse/{id}', 'Admin\PhotoController@analyse')->name('photos.analyse'); Route::post('photos/regenerate-thumbnails/{id}', 'Admin\PhotoController@regenerateThumbnails')->name('photos.regenerateThumbnails'); Route::post('photos/rotate/{photoId}/{angle}', 'Admin\PhotoController@rotate')->name('photos.rotate'); Route::post('photos/store-bulk', 'Admin\PhotoController@storeBulk')->name('photos.storeBulk'); Route::put('photos/update-bulk/{albumId}', 'Admin\PhotoController@updateBulk')->name('photos.updateBulk'); Route::resource('photos', 'Admin\PhotoController'); // Storage management Route::get('storage/{id}/delete', 'Admin\StorageController@delete')->name('storage.delete'); Route::resource('storage', 'Admin\StorageController'); }); // Installation Route::group(['prefix' => 'install'], function () { Route::get('/administrator', 'InstallController@administrator')->name('install.administrator'); Route::post('/administrator', 'InstallController@administrator')->name('install.administrator'); Route::get('/check', 'InstallController@check')->name('install.check'); Route::post('/check', 'InstallController@check')->name('install.check'); Route::get('/database', 'InstallController@database')->name('install.database'); Route::post('/database', 'InstallController@database')->name('install.database'); }); // Gallery Route::get('/', 'Gallery\DefaultController@index')->name('home'); Route::get('/activate/{token}', 'Auth\ActivateController@activate')->name('auth.activate'); Route::get('{albumUrlAlias}', 'Gallery\AlbumController@index')->name('viewAlbum'); Route::get('{albumUrlAlias}/{photoFilename}', 'Gallery\PhotoController@show')->name('viewPhoto'); Route::get('photo/{albumUrlAlias}/{photoFilename}', 'Gallery\PhotoController@download')->name('downloadPhoto');