mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 14:37:13 +01:00
move db into api
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { createBooking } from '../../db/index'
|
||||
import { createBooking } from './db/index'
|
||||
import { Error } from 'mongoose'
|
||||
|
||||
export default async function userHandler(req, res) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
|
||||
|
||||
import { getBookedDays } from '../../db/index'
|
||||
import { getBookedDays } from './db/index'
|
||||
|
||||
export default async function useHandler(req, res) {
|
||||
const { method } = req
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Schema } from 'mongoose'
|
||||
|
||||
import { getDays, dateFormat } from '../lib/dateHelper'
|
||||
import { getDays, dateFormat } from '../../helpers/date'
|
||||
|
||||
export const BookerSchema = new Schema(
|
||||
{
|
||||
Reference in New Issue
Block a user