randydev commited on
Commit
80213df
·
verified ·
1 Parent(s): e0b39ff

Update routes/example.js

Browse files
Files changed (1) hide show
  1. routes/example.js +2 -2
routes/example.js CHANGED
@@ -1,4 +1,4 @@
1
- const express = require('express');
2
  const router = express.Router();
3
 
4
  /**
@@ -14,4 +14,4 @@ router.get('/example', (req, res) => {
14
  res.json({ message: 'Example endpoint' });
15
  });
16
 
17
- module.exports = router;
 
1
+ import express = from 'express';
2
  const router = express.Router();
3
 
4
  /**
 
14
  res.json({ message: 'Example endpoint' });
15
  });
16
 
17
+ export { router };