randydev commited on
Commit
cd5d314
·
verified ·
1 Parent(s): f74349a

Update routes/example.js

Browse files
Files changed (1) hide show
  1. routes/example.js +5 -4
routes/example.js CHANGED
@@ -1,14 +1,15 @@
1
  import express from 'express';
 
2
  const router = express.Router();
3
 
4
  /**
5
- * @swagger
6
- * /api/example:
7
  * get:
8
- * summary: Example endpoint
9
  * responses:
10
  * 200:
11
- * description: Success
12
  */
13
  router.get('/example', (req, res) => {
14
  res.json({ message: 'Example endpoint' });
 
1
  import express from 'express';
2
+
3
  const router = express.Router();
4
 
5
  /**
6
+ * @openapi
7
+ * /:
8
  * get:
9
+ * description: Welcome to swagger-jsdoc!
10
  * responses:
11
  * 200:
12
+ * description: Returns a mysterious string.
13
  */
14
  router.get('/example', (req, res) => {
15
  res.json({ message: 'Example endpoint' });