123456789101112131415161718192021 |
- const express = require('express');
- const router = express.Router();
- const randomFreeService = require('../../services/matchmaking/randomFree');
- const JSONError = require('../../helpers/index').JSONError;
- /* GET users listing. */
- router.get('/join', function(req, res, next) {
- console.log("HERE!");
- randomFreeService.join(req.user).
- then((data) => {
- console.log(data);
- res.send(data);
- }).
- catch((err) => {
- console.log(err);
- res.send(err);
- });
- });
- module.exports = router;
|