Commit 35f202f5 authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

use app router

parent 0efa1f9f
import models from '../../../../models.json'
import { NextResponse } from 'next/server'
export async function GET(re) {
return NextResponse.json(models)
}
import models from '../../../models.json'
export default async function handler(req, res) {
return res.status(200).json(models)
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment