moved page under locale

This commit is contained in:
2024-02-17 07:44:22 +01:00
parent 327bc99d35
commit 4f6d31a7c1

View File

@@ -0,0 +1,13 @@
import { addMonth } from '@/app/lib/actions/monthActions';
import { gotoHome } from '@/app/lib/actions/navigationActions';
import { parseYearMonth } from '@/app/lib/format';
export default async function Page({ params:{ id } }: { params: { id:string } }) {
const { year, month } = parseYearMonth(id);
await addMonth({ year, month });
await gotoHome({ year, month });
return null; // if we don't return anything, the client-side will not re-validate cache
}