traxxx-web/pages/scene/+onBeforeRender.js

18 lines
339 B
JavaScript
Raw Normal View History

import { fetchScenesById } from '#/src/scenes.js';
export async function onBeforeRender(pageContext) {
2024-03-21 01:54:05 +00:00
const [scene] = await fetchScenesById([Number(pageContext.routeParams.sceneId)], {
reqUser: pageContext.user,
actorStashes: true,
});
return {
pageContext: {
title: scene.title,
pageProps: {
scene,
},
},
};
}