You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
300 B
TypeScript
14 lines
300 B
TypeScript
// https://vike.dev/data
|
|
import { todos } from "../../database/todoItems";
|
|
import type { PageContextServer } from "vike/types";
|
|
|
|
export type Data = {
|
|
todo: { text: string }[];
|
|
};
|
|
|
|
export default async function data(
|
|
_pageContext: PageContextServer,
|
|
): Promise<Data> {
|
|
return { todo: todos };
|
|
}
|