Skip to content

Commit

Permalink
refactor: remove /api prefix for thumbnail route (reserved for api ro…
Browse files Browse the repository at this point in the history
…utes by laravel)
  • Loading branch information
wanze committed Apr 26, 2023
1 parent 2452261 commit 58a4d18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ A Statamic addon providing common functionality and fixes among all Boilerplate

* Provides a ``{{ boilerplate:version }}`` tag to output the version from the root `composer.json`.
* Offers Statamic control panel logins via magic links from our portal.
* Provides a route `/api/thumbnail/{preset}/{imageAssetId}` to output a thumbnail (via Glide)
* Provides a web route `/thumbnail/{preset}/{imageAssetId}` to output a thumbnail (via Glide)
using the given asset preset and id.
* Multi language extensions
* Always sets the entry of the default site as root of a newly created entry.
Expand Down
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
if (config('statamic.boilerplate.magic_links_enabled', false)) {
Route::get('/portal-login/{token}', [MagicLinkController::class, 'login']);
}
Route::get('/api/thumbnail/{preset}/{imageAssetId}', [ThumbnailFromPresetController::class, 'thumbnail']);
Route::get('/thumbnail/{preset}/{imageAssetId}', [ThumbnailFromPresetController::class, 'thumbnail']);

0 comments on commit 58a4d18

Please sign in to comment.