mirror of
https://github.com/yldio/copilot.git
synced 2024-11-14 07:10:05 +02:00
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');
|
|
});
|