Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
marttinnotta committed Jan 16, 2023
1 parent f6ab24e commit 53fef8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

---

## [3.1.2] - 16-01-2023

### Fixed

- Fix API routes returning 404 by loading routes in at boot time not after

## [3.1.1] - 06-01-2023

### Fixed
Expand Down
4 changes: 1 addition & 3 deletions src/FieldServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ public function boot()
}

Route::middleware(config('nova-media-field.middlewares', []))
->group(function() {
$this->loadRoutesFrom(__DIR__ . '/routes.php');
});
->group(__DIR__ . '/routes.php');

Validator::extend('height', '\OptimistDigital\MediaField\Classes\MediaValidator@height');

Expand Down

0 comments on commit 53fef8e

Please sign in to comment.