use app router

This commit is contained in:
Jeffrey Morgan 2023-07-02 22:05:26 -04:00
parent 0efa1f9fb2
commit 35f202f573
2 changed files with 6 additions and 5 deletions

View file

@ -0,0 +1,6 @@
import models from '../../../../models.json'
import { NextResponse } from 'next/server'
export async function GET(re) {
return NextResponse.json(models)
}

View file

@ -1,5 +0,0 @@
import models from '../../../models.json'
export default async function handler(req, res) {
return res.status(200).json(models)
}