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 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-04 21:59:32 +01:00
|
|
|
Route::get('/{albumUrlAlias}', 'Gallery\AlbumController@index')->name('viewAlbum');
|
|
|
|
Route::get('/{albumUrlAlias}/{photoFilename}', 'Gallery\PhotoController@view')->name('viewPhoto');
|
|
|
|
Route::get('/photo/{albumUrlAlias}/{photoFilename}', 'Gallery\PhotoController@download')->name('downloadPhoto');
|