2016-09-01 16:23:39 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Web Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This file is where you may define all of the routes that are handled
|
|
|
|
| by your application. Just tell Laravel the URIs it should respond
|
|
|
|
| to using a Closure or controller method. Build something great!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
Auth::routes();
|
|
|
|
|
|
|
|
// Administration
|
|
|
|
Route::group(['prefix' => 'admin'], function () {
|
|
|
|
Route::get('/', 'Admin\DefaultController@index')->name('admin');
|
2016-09-05 15:28:56 +01:00
|
|
|
Route::post('settings/save', 'Admin\DefaultController@saveSettings')->name('admin.saveSettings');
|
2016-09-06 13:26:02 +01:00
|
|
|
Route::post('settings/test-email', 'Admin\DefaultController@testMailSettings')->name('admin.testMailSettings');
|
2016-09-05 15:28:56 +01:00
|
|
|
Route::get('settings', 'Admin\DefaultController@settings')->name('admin.settings');
|
2016-09-01 16:23:39 +01:00
|
|
|
|
2016-09-05 12:01:30 +01:00
|
|
|
// Album management
|
2016-09-01 16:23:39 +01:00
|
|
|
Route::get('albums/{id}/delete', 'Admin\AlbumController@delete')->name('albums.delete');
|
2016-09-05 12:01:30 +01:00
|
|
|
Route::get('albums/{id}/monitor/{uploadId}.json', 'Admin\AlbumController@monitorUploadJson')->name('albums.monitorUploadJson');
|
|
|
|
Route::get('albums/{id}/monitor/{uploadId}', 'Admin\AlbumController@monitorUpload')->name('albums.monitorUpload');
|
2016-09-01 16:23:39 +01:00
|
|
|
Route::resource('albums', 'Admin\AlbumController');
|
2016-09-05 12:01:30 +01:00
|
|
|
|
|
|
|
// Photo management
|
2016-09-05 12:56:13 +01:00
|
|
|
Route::post('photos/store-bulk', 'Admin\PhotoController@storeBulk')->name('photos.storeBulk');
|
2016-09-02 21:27:50 +01:00
|
|
|
Route::resource('photos', 'Admin\PhotoController');
|
2016-09-03 22:13:05 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
// Gallery
|
|
|
|
Route::get('/', 'Gallery\DefaultController@index')->name('home');
|
2016-09-06 13:48:52 +01:00
|
|
|
Route::get('/activate/{token}', 'Auth\RegisterController@activate')->name('auth.activate');
|
2016-09-05 15:28:56 +01:00
|
|
|
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');
|