15 lines
239 B
JavaScript
15 lines
239 B
JavaScript
const express = require('express');
|
|
|
|
const app = express();
|
|
|
|
app.use('/graphql', require('./endpoint'));
|
|
|
|
app.listen(3000, (err) => {
|
|
if (err) {
|
|
console.log(err);
|
|
throw err;
|
|
}
|
|
|
|
console.log('Listening at localhost:3000');
|
|
});
|