8295bd6882
this shall be a progressive process
15 lines
287 B
JavaScript
15 lines
287 B
JavaScript
const express = require('express');
|
|
|
|
const app = express();
|
|
|
|
app.use('/graphql', require('./endpoint'));
|
|
|
|
const server = app.listen(4000, err => {
|
|
if (err) {
|
|
console.error(err);
|
|
throw err;
|
|
}
|
|
|
|
console.log(`Listening at http://0.0.0.0:${server.address().port}/graphql`);
|
|
});
|