1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

fix merge sideeffect

This commit is contained in:
Damodar Lohani 2021-08-06 12:50:20 +05:45
parent f3338e7ed1
commit 2459844e97

View file

@ -31,14 +31,6 @@ App::init(function ($project) {
}
}, ['project'], 'projects');
App::init(function ($project) {
/** @var Utopia\Database\Document $project */
if($project->getId() !== 'console') {
throw new Exception('Access to this API is forbidden.', 401);
}
}, ['project'], 'projects');
App::post('/v1/projects')
->desc('Create Project')
->groups(['api', 'projects'])