@azteam/express 1.2.231 → 1.2.232
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Server.js +5 -0
package/package.json
CHANGED
package/src/Server.js
CHANGED
|
@@ -306,6 +306,11 @@ class Server {
|
|
|
306
306
|
app.all('/', async function (req, res) {
|
|
307
307
|
return res.success('welcome');
|
|
308
308
|
});
|
|
309
|
+
app.get('/track', async function (req, res) {
|
|
310
|
+
return res.success({
|
|
311
|
+
...req.trackDevice,
|
|
312
|
+
});
|
|
313
|
+
});
|
|
309
314
|
|
|
310
315
|
app.use(function (req, res) {
|
|
311
316
|
throw new ErrorException(NOT_FOUND);
|