mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-17 09:01:06 +02:00
Reformat some responses
This commit is contained in:
@ -24,8 +24,9 @@ class IconController extends Controller
|
||||
]);
|
||||
|
||||
$path = $request->file('icon')->store('public/icons');
|
||||
$response['filename'] = pathinfo($path)['basename'];
|
||||
|
||||
return response()->json(pathinfo($path)['basename'], 201);
|
||||
return response()->json($response, 201);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user