Integrated showcased filter.

This commit is contained in:
2024-03-17 03:55:26 +01:00
parent 707ec56bc8
commit 6701caf4b1
2 changed files with 5 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ import { fetchScenes } from '#/src/scenes.js';
export async function onBeforeRender(pageContext) {
const { scenes, limit, total } = await fetchScenes({
scope: pageContext.routeParams.scope || 'latest',
isShowcased: true,
}, {
page: Number(pageContext.routeParams.page) || 1,
limit: Number(pageContext.urlParsed.search.limit) || 30,