Add trailing array entry comma
This commit is contained in:
parent
5ffcee06c0
commit
d8f5293a73
1 changed files with 4 additions and 4 deletions
|
@ -64,7 +64,7 @@ class MicropubController extends Controller
|
||||||
}
|
}
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'response' => 'created',
|
'response' => 'created',
|
||||||
'location' => $note->longurl
|
'location' => $note->longurl,
|
||||||
], 201)->header('Location', $note->longurl);
|
], 201)->header('Location', $note->longurl);
|
||||||
}
|
}
|
||||||
if ($request->input('h') == 'card' || $request->input('type')[0] == 'h-card') {
|
if ($request->input('h') == 'card' || $request->input('type')[0] == 'h-card') {
|
||||||
|
@ -76,7 +76,7 @@ class MicropubController extends Controller
|
||||||
|
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'response' => 'created',
|
'response' => 'created',
|
||||||
'location' => $place->longurl
|
'location' => $place->longurl,
|
||||||
], 201)->header('Location', $place->longurl);
|
], 201)->header('Location', $place->longurl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -85,14 +85,14 @@ class MicropubController extends Controller
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'response' => 'error',
|
'response' => 'error',
|
||||||
'error' => 'invalid_token',
|
'error' => 'invalid_token',
|
||||||
'error_description' => 'The token provided is not valid or does not have the necessary scope'
|
'error_description' => 'The token provided is not valid or does not have the necessary scope',
|
||||||
], 400);
|
], 400);
|
||||||
}
|
}
|
||||||
|
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'response' => 'error',
|
'response' => 'error',
|
||||||
'error' => 'no_token',
|
'error' => 'no_token',
|
||||||
'error_description' => 'No OAuth token sent with request'
|
'error_description' => 'No OAuth token sent with request',
|
||||||
], 400);
|
], 400);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue