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.
 

16 lines
446 B

const http = require('http');
const port = process.env.PORT || 62988;
const expressHandler = require('express');
const service = expressHandler();
const metaApi = require('./api/metadata');
service.use('/meta', metaApi);
service.use('/', (req, res, next) => {
res.status(403).json({
message: 'You do not have permission to access this resource'
})
})
const server = http.createServer(service);
server.listen(port, 'localhost');