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.
12 lines
295 B
TypeScript
12 lines
295 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 };
|
|
}
|