* image upload handling

* old static image migrator implementation as cli command
* auth id fix, renew works now
* templates refactored to work with uploaded images
This commit is contained in:
Danyi Dávid
2018-05-13 22:34:15 +02:00
parent 26c74ec238
commit c4438f7e8c
20 changed files with 532 additions and 20 deletions

View File

@@ -44,10 +44,22 @@ return function (Application $app, MiddlewareFactory $factory, ContainerInterfac
'api.judges'
);
$app->route(
'/api/awardee[/{id:\d+}]',
App\Handler\Api\AwardeeHandler::class,
['GET','POST','PUT','DELETE'],
'api.awardees'
'/api/awardee[/{id:\d+}]',
App\Handler\Api\AwardeeHandler::class,
['GET','POST','PUT','DELETE'],
'api.awardees'
);
$app->route(
'/api/judge-image/{slug}',
App\Handler\Api\JudgeImageHandler::class,
['GET','POST','DELETE'],
'api.judge-image'
);
$app->route(
'/api/awardee-image/{type:profile|award}/{slug}',
App\Handler\Api\AwardeeImageHandler::class,
['GET','POST','DELETE'],
'api.awardee-image'
);
$app->get('/the-prize', App\Handler\PrizeRedirectHandler::class, 'the-prize');
@@ -57,7 +69,6 @@ return function (Application $app, MiddlewareFactory $factory, ContainerInterfac
'the-prize.article'
);
// $app->get('/judges', App\Handler\JudgesHandler::class, 'judges');
$app->get('/awards', App\Handler\AwardeeRedirectHandler::class, 'awardees');
$app->get('/awards/{year:\d+}', App\Handler\AwardeeHandler::class, 'awardees-by-year');
$app->get('/awardee/{slug}', App\Handler\ProfileHandler::class, 'awardee');