implented adding year-month

This commit is contained in:
2024-01-05 15:56:04 +01:00
parent 2413ab9240
commit 0b85e74eb0
4 changed files with 126 additions and 6 deletions

View File

@@ -0,0 +1,11 @@
import { addYearMonth } from '@/app/lib/yearMonthActions';
import { revalidatePath } from 'next/cache';
import { redirect } from 'next/navigation';
export default async function Page({ params:{ id } }: { params: { id:string } }) {
await addYearMonth(id);
revalidatePath('/');
redirect(`/`);
}