laravel / lumen-framework

The Laravel Lumen Framework.
https://lumen.laravel.com
MIT License
1.48k stars 419 forks source link

Lumen Routing with regex for files path #1056

Closed ranganathabrr closed 4 years ago

ranganathabrr commented 4 years ago

Description:

Hi I am trying to upload, retrive and delete files using Lumen API. Routes I added but i am getting Not Found Exception. Laravel Framework I used where clause in the routes. Route::delete('units/{unit}/files/{path}', 'UnitsOtaUpdateController@deleteFile')->where('path', '.+');

Steps To Reproduce:

$router->delete('units/{unit}/files/{path:^(.+)\/([^/]+)$}', 'UnitsOtaUpdateController@deleteFile');

could you please help me to fix this issue. Thanks in advance Screenshot from 2020-03-23 12-17-15

driesvints commented 4 years ago

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.

vitalijalbu commented 8 months ago

hi, i also want to add image.png to url route, it's possible? how can i set regex to route?