PHP Classes

File: frontend/pages/api/hello.ts

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   PHP App Generator   frontend/pages/api/hello.ts   Download  
File: frontend/pages/api/hello.ts
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP App Generator
Generate Web applications using Laravel
Author: By
Last change: Update of frontend/pages/api/hello.ts
Date: 1 year ago
Size: 307 bytes
 

Contents

Class file image Download
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction import type { NextApiRequest, NextApiResponse } from 'next' type Data = { name: string } export default function handler( req: NextApiRequest, res: NextApiResponse<Data> ) { res.status(200).json({ name: 'John Doe' }) }