Skip to content

Commit

Permalink
Ipinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Dec 11, 2024
1 parent e8d64aa commit 31cb241
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/controllers/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ export default function () {
supportVersions: getSupportVersions(),
})
});
router.get('/ip', async function (req, res, next) {
res.send(req.ip);
});
router.get('/check', async function (req, res, next) {
try {
if (lastCheck < Date.now() - refreshTime) {
Expand Down

0 comments on commit 31cb241

Please sign in to comment.