* 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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user