mirror of
https://github.com/yldio/copilot.git
synced 2024-11-15 07:40:07 +02:00
8295bd6882
this shall be a progressive process
17 lines
371 B
JavaScript
17 lines
371 B
JavaScript
const express = require('express');
|
|
|
|
const app = express();
|
|
|
|
app.use('/graphql', require('./endpoint'));
|
|
|
|
const server = app.listen(4000, err => {
|
|
if (err) {
|
|
// eslint-disable-next-line no-console
|
|
console.error(err);
|
|
throw err;
|
|
}
|
|
|
|
// eslint-disable-next-line no-console
|
|
console.log(`Listening at http://0.0.0.0:${server.address().port}/graphql`);
|
|
});
|