This commit is contained in:
selcuk committed 2022-07-11 23:56:32 +03:00
1 parent 02ff381993
commit fee204a338
5 files changed
+368 -2

No files matched your search

+29
View File
@@ -1,6 +1,35 @@
const express = require("express");
const router = express.Router();
// var socketList = [];
// io.sockets.on("connection", function (socket) {
// // add socket to list on connection
// socketList.push(socket);
// // remove socket from list on disconnect
// socket.on("disconnect", function () {
// socketList.splice(socketList.indexOf(socket), 1);
// });
// socket.on("search", function (country) {
// // Give list of sockets where (socket.country) = country
// var filteredList = socketList.filter(function (s) {
// return s.country == country;
// });
// });
// });
router.post("/getRides", function (req, res, next) {
var io = req.app.get("io");
// io.to(//socket.id//).emit("message", data);
// db.rides.find(function(err, docs) {
// res.json(docs);
// });
});
router.get("/", function (req, res) {
res.render("flasher");
});