mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
ed1ac74e7a
- Fixed updatae causing middlewares to sometimes load on wrong routes. - Converted project to PSR/2. - Updated InputCollection class and added get method for easy access to values. - Complete refactor of RouterBase. - Added findRoute method to RouterBase. - It's now possible to change parameter modifiers and symbol by overwriting properties on RouterBase. - Added RouterUrlTest unit-test for testing route-urls. - Added IRestController that can be easily implemented in custom ResourceController-classes. - It's now possible to use "-" instead of "_" when using getHeader method in Request class. - Added PHPDocs. - Fixed "/" route sometimes returning "//" as url. - Optimisations and bugfixes.
13 lines
230 B
PHP
13 lines
230 B
PHP
<?php
|
|
namespace Demo\Middlewares;
|
|
|
|
use Pecee\Http\Middleware\BaseCsrfVerifier;
|
|
|
|
class CsrfVerifier extends BaseCsrfVerifier
|
|
{
|
|
/**
|
|
* CSRF validation will be ignored on the following urls.
|
|
*/
|
|
protected $except = ['/api/*'];
|
|
|
|
} |