Horje
swagger next js Code Example
swagger next js
import { NextApiRequest, NextApiResponse } from 'next';

/**
 * @swagger
 * /api/hello:
 *   get:
 *     description: Returns the hello world
 *     responses:
 *       200:
 *         description: hello world
 */
const handler = (_req: NextApiRequest, res: NextApiResponse) => {
  res.status(200).json({
    result: 'hello world',
  });
};

export default handler;




Javascript

Related
node-google-spreadsheet color border Code Example node-google-spreadsheet color border Code Example
code converter from javascript to typescript Code Example code converter from javascript to typescript Code Example
javascript class prototype Code Example javascript class prototype Code Example
edit a json file in nodejs Code Example edit a json file in nodejs Code Example
discord.js role commend Code Example discord.js role commend Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7