1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-10 15:14:20 +02:00

feat(endpoints): use Atomastic Components for endpoints #478

This commit is contained in:
Awilum
2020-11-23 20:59:42 +03:00
parent 22eabb0789
commit 5cca7807cd

View File

@@ -395,7 +395,7 @@ flextype()->put('/api/folders', function (Request $request, Response $response)
$response_code = $rename_folder ? 200 : 404;
// Update calls counter
flextype('filesytem')->file($folders_token_file_path)->put(lextype('yaml')->encode(array_replace_recursive($folders_token_file_data, ['calls' => $folders_token_file_data['calls'] + 1])));
flextype('filesytem')->file($folders_token_file_path)->put(flextype('yaml')->encode(array_replace_recursive($folders_token_file_data, ['calls' => $folders_token_file_data['calls'] + 1])));
if ($response_code === 404) {
// Return response