UUU
This commit is contained in:
parent
2ce820585d
commit
127de127a7
|
@ -15,6 +15,11 @@ const pool = mariadb.createPool({
|
|||
connectionLimit: 5 // Adjust connection limit as needed
|
||||
});
|
||||
|
||||
router.get("/v1/myIP", (req,res) => {
|
||||
res.json({
|
||||
ip: req.headers['x-forwarded-for'] || req.connection.remoteAddress
|
||||
})
|
||||
});
|
||||
|
||||
// Route to fetch all bans
|
||||
router.get('/v1/bans', async (req, res) => {
|
||||
|
|
Loading…
Reference in a new issue