Update routes/example.js
Browse files- routes/example.js +1 -10
routes/example.js
CHANGED
@@ -2,17 +2,8 @@ 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' });
|
16 |
});
|
17 |
|
18 |
-
export { router };
|
|
|
2 |
|
3 |
const router = express.Router();
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
router.get('/example', (req, res) => {
|
6 |
res.json({ message: 'Example endpoint' });
|
7 |
});
|
8 |
|
9 |
+
export { router };
|