backup
This commit is contained in:
1 parent
95193bc3f3
commit
ee602ee891
4 files changed
+31
-16
No files matched your search
@@ -23,12 +23,16 @@ const router = express.Router();
|
||||
router.post("/getProjects", function (req, res, next) {
|
||||
console.log("yes there is a request");
|
||||
var io = req.app.get("io");
|
||||
io.emit("world", "This will emit projects");
|
||||
io.emit("test", "This will emit projects");
|
||||
io.emit("test", "Hello from socket");
|
||||
// io.to(//socket.id//).emit("message", data);
|
||||
|
||||
// db.rides.find(function(err, docs) {
|
||||
// res.json(docs);
|
||||
// });
|
||||
res.setHeader("content-type", "text/html; charset=utf-8");
|
||||
res.setHeader("Access-Control-Allow-Origin", "*");
|
||||
res.send("ok you got it back");
|
||||
});
|
||||
|
||||
router.get("/", function (req, res) {
|
||||
|
||||
Reference in new issue
Block a user