Project with the goal of creating a backend server with an API for interacting with archived YouTube videos and metadata.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

18 lines
537 B

const expressHandler = require('express');
const expressRouter = expressHandler.Router();
expressRouter.get('/video/:videoID', (request, result, next) => {
var videoID = request.params.videoID;
result.status(200).json({
message: 'requested video ID : ' + videoID
})
})
expressRouter.get('/channel/:channelID', (request, result, next) => {
var channelID = request.params.channelID;
result.status(200).json({
message: 'requested channel ID : ' + channelID
})
})
module.exports = expressRouter;