From 60f3f2c5e5b817cf8cc5764c78f9d81da7f66d3c Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 16 Apr 2017 13:18:51 -0400 Subject: [PATCH] Fix broken route causing inability to edit files within directory. --- CHANGELOG.md | 4 ++++ routes/server.php | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ccc53c56..9f5a19f32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ This file is a running track of new features and fixes to each version of the pa This project follows [Semantic Versioning](http://semver.org) guidelines. +## v0.6.0-beta.2 (Courageous Carniadactylus) +### Fixed +* `[beta.2]` — Fixes filemanager 404 when editing a file within a directory. + ## v0.6.0-beta.2 (Courageous Carniadactylus) ### Fixed * `[beta.1]` — Fixes task management ststem not running correctly. diff --git a/routes/server.php b/routes/server.php index 3358ed253..57c2108a1 100644 --- a/routes/server.php +++ b/routes/server.php @@ -53,7 +53,9 @@ Route::group(['prefix' => 'settings'], function () { Route::group(['prefix' => 'files'], function () { Route::get('/', 'ServerController@getFiles')->name('server.files.index'); Route::get('/add', 'ServerController@getAddFile')->name('server.files.add'); - Route::get('/edit/{file}', 'ServerController@getEditFile')->name('server.files.edit'); + Route::get('/edit/{file}', 'ServerController@getEditFile') + ->name('server.files.edit') + ->where('file', '.*'); Route::get('/download/{file}', 'ServerController@getDownloadFile') ->name('server.files.edit') ->where('file', '.*');