{"size": 393, "ext": "js", "max_stars_repo_path": "routes/user.js", "max_stars_repo_name": "krisScript/express-social-network", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "routes/user.js", "max_issues_repo_name": "krisScript/express-social-network", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "routes/user.js", "max_forks_repo_name": "krisScript/express-social-network", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 32.75, "max_line_length": 76, "alphanum_fraction": 0.7328244275}
const express = require('express');

const userRouter = require('../controllers/user');
const isAuth = require('../middleware/is-auth');

const router = express.Router();
const { body } = require('express-validator/check');
router.get('/user-page/:userId', isAuth, userRouter.getUserPage);
router.post('/user-page/:userId', isAuth, userRouter.postAddProfilePicture);

module.exports = router;
