Update routes/example.js
Browse files- 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 |
-
* @
|
6 |
-
*
|
7 |
* get:
|
8 |
-
*
|
9 |
* responses:
|
10 |
* 200:
|
11 |
-
* description:
|
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' });
|