Port application from Next.js to Nuxt
Nuxt is based on Vue.js and I find their building blocks to be much neater compared to the React based Next.js.
This commit is contained in:
parent
8c8b561f1a
commit
250ca9a1ac
45 changed files with 662 additions and 1358 deletions
6
server/api/schedule.ts
Normal file
6
server/api/schedule.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import { readFile } from "node:fs/promises";
|
||||
import { Schedule } from "~/shared/types/schedule";
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
return JSON.parse(await readFile("schedule.json", "utf-8")) as Schedule;
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue