| 1 | <?php |
||
| 11 | class ShortCodePathMiddleware implements MiddlewareInterface |
||
| 12 | { |
||
| 13 | private const OLD_PATH_PREFIX = '/short-codes'; |
||
| 14 | private const NEW_PATH_PREFIX = '/short-urls'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Process an incoming server request and return a response, optionally delegating |
||
| 18 | * response creation to a handler. |
||
| 19 | */ |
||
| 20 | 1 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
| 30 | } |
||
| 31 |