mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 06:57:12 +01:00
make storing work
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
|
||||
|
||||
export default (req, res) => {
|
||||
import { getAllBookings } from './db/index'
|
||||
|
||||
export default async (req, res) => {
|
||||
const bookings = await getAllBookings()
|
||||
|
||||
console.log(bookings)
|
||||
|
||||
res.statusCode = 200
|
||||
res.json(['2020-07-23', '2020-07-24', '2020-07-25', '2020-08-01'])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user