Api-updates

Excluding api routes from CSRF token middleware
This commit is contained in:
Manish Verma
2017-05-15 12:47:31 +05:30
parent 8a4b0d03c4
commit b80969d5a4

View File

@@ -4,9 +4,21 @@ namespace App\Http\Middleware;
use Closure;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;
use Lang;
class VerifyCsrfToken extends BaseVerifier
{
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
'CheckSerial',
'api/v1/*'
];
/**
* Handle an incoming request.
*