Move the code dealing with saving and loading data to server/database to gather it all up into one place.
5 lines
137 B
TypeScript
5 lines
137 B
TypeScript
import { readSchedule } from "~/server/database";
|
|
|
|
export default defineEventHandler(async (event) => {
|
|
return await readSchedule();
|
|
})
|