diff options
author | Chaoyi Zha <summermontreal@gmail.com> | 2017-01-27 00:00:06 +0300 |
---|---|---|
committer | Chaoyi Zha <summermontreal@gmail.com> | 2017-01-27 00:00:06 +0300 |
commit | d39e69e5f4c06b153e76d58e1bbfca75f1752449 (patch) | |
tree | 4e9de4cc1b7ae34660f922a1a7d112cc599b0063 | |
parent | 7d66e655fe1eafcf7211309cf6c5d8b1314b8838 (diff) | |
parent | 4670270240ff3c6604e98a4f5f017a85089bb223 (diff) |
Merge with master
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | app/Http/Controllers/AdminPaginationController.php | 6 | ||||
-rw-r--r-- | app/Http/Controllers/Api/ApiLinkController.php | 2 | ||||
-rw-r--r-- | docs/about/license.md | 2 | ||||
-rw-r--r-- | docs/developer-guide/api.md | 4 |
5 files changed, 12 insertions, 5 deletions
@@ -36,6 +36,7 @@ There are breaking changes between 2.x and 1.x; it is not yet possible to automa - Back up your database and files - Update by using `git pull` or downloading a release - Run `composer install -no-dev -o` to ensure dependencies are up to date + - Migrate with `php artisan migrate` to ensure database structure is up to date #### Browser Extensions @@ -49,7 +50,7 @@ Polr uses [Semantic Versioning](http://semver.org/) ####License - Copyright (C) 2013-2016 Chaoyi Zha + Copyright (C) 2013-2017 Chaoyi Zha This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License diff --git a/app/Http/Controllers/AdminPaginationController.php b/app/Http/Controllers/AdminPaginationController.php index f7d7a79..156bea4 100644 --- a/app/Http/Controllers/AdminPaginationController.php +++ b/app/Http/Controllers/AdminPaginationController.php @@ -123,7 +123,8 @@ class AdminPaginationController extends Controller { return $link->clicks; } }) - ->escapeColumns(['short_url', 'long_url', 'creator']) + ->editColumn('long_url', '<a target="_blank" title="{{ $long_url }}" href="{{ $long_url }}">{{ str_limit($long_url, 50) }}</a>') + ->escapeColumns(['short_url', 'creator']) ->make(true); } @@ -145,7 +146,8 @@ class AdminPaginationController extends Controller { return $link->clicks; } }) - ->escapeColumns(['short_url', 'long_url']) + ->editColumn('long_url', '<a target="_blank" title="{{ $long_url }}" href="{{ $long_url }}">{{ str_limit($long_url, 50) }}</a>') + ->escapeColumns(['short_url']) ->make(true); } } diff --git a/app/Http/Controllers/Api/ApiLinkController.php b/app/Http/Controllers/Api/ApiLinkController.php index 30f007a..e6449b1 100644 --- a/app/Http/Controllers/Api/ApiLinkController.php +++ b/app/Http/Controllers/Api/ApiLinkController.php @@ -43,7 +43,7 @@ class ApiLinkController extends ApiController { $user = self::getApiUserInfo($request); // Validate URL form data - $validator = Validator::make($request, [ + $validator = \Validator::make($request, [ 'url_ending' => 'required|alpha_dash' ]); diff --git a/docs/about/license.md b/docs/about/license.md index a80c2ee..8c0b2bc 100644 --- a/docs/about/license.md +++ b/docs/about/license.md @@ -4,7 +4,7 @@ Polr is licensed under the GPLv2+ <pre> -Copyright (C) 2013-2016 Chaoyi Zha +Copyright (C) 2013-2017 Chaoyi Zha This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License diff --git a/docs/developer-guide/api.md b/docs/developer-guide/api.md index 0594323..a89e7d4 100644 --- a/docs/developer-guide/api.md +++ b/docs/developer-guide/api.md @@ -149,3 +149,7 @@ Example `json` error response: Example `plain_text` error response: `custom ending already in use` + +## Testing the API + +You may test your integrations on http://demo.polr.me with the credentials "demo-admin"/"demo-admin". Keep in mind the instance is only a demo and may be cleared at any time. |