1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-11-09 11:42:28 +01:00

Ensure proper data type is passed to \Validator in lookup endpoint

This commit is contained in:
Chaoyi Zha 2017-02-05 13:21:09 -05:00
parent ca5341b046
commit 3a14174427
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class ApiLinkController extends ApiController {
$user = self::getApiUserInfo($request);
// Validate URL form data
$validator = \Validator::make($request, [
$validator = \Validator::make($request->all(), [
'url_ending' => 'required|alpha_dash'
]);

View File

@ -94,7 +94,7 @@ Arguments:
Remember that the `url` argument must be URL encoded.
Example: GET `http://example.com/api/v2/action/lookup?key=API_KEY_HERE&ending=2`
Example: GET `http://example.com/api/v2/action/lookup?key=API_KEY_HERE&url_ending=2`
Response:
```
{