2022-11-10
09:00-17:00 / 17:00-19:00 / 21:00~22:00 / 23:00-24:00
다음주에는 API가 수정될것인가...🤔
export const getUpload = (req, res) => {
return res.render('upload', { pageTitle: 'Upload Video' });
};
export const postUpload = (req, res) => {
const { title } = req.body;
const newVideo = {
title,
rating: 0,
comments: 0,
createdAt: 'just now',
views: 0,
id: videos.length + 1,
};
videos.push(newVideo);
return res.redirect('/');
};
videoRouter.route('/upload').get(getUpload).post(postUpload);
Monday/ Wednesday(Tuesday)/ Thursday 19:45-20:15 (English with Clarisse)
Tuesday / Thursday 21:00 ~ 22:00 (어깨 수영 보류)
Saturday 09:00~10:00
Sunday