ryu-js / routes /example.js
randydev's picture
Update routes/example.js
cd5d314 verified
raw
history blame
341 Bytes
import express from 'express';
const router = express.Router();
/**
* @openapi
* /:
* get:
* description: Welcome to swagger-jsdoc!
* responses:
* 200:
* description: Returns a mysterious string.
*/
router.get('/example', (req, res) => {
res.json({ message: 'Example endpoint' });
});
export { router };