1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 23:30:05 +02:00
copilot/cloudapi-graphql/src/index.js

15 lines
275 B
JavaScript
Raw Normal View History

2016-10-10 18:37:26 +03:00
const express = require('express');
const app = express();
2016-10-20 04:14:26 +03:00
app.use('/graphql', require('./endpoint'));
2016-10-10 18:37:26 +03:00
2017-04-13 20:33:59 +03:00
const server = app.listen((err) => {
2016-10-10 18:37:26 +03:00
if (err) {
console.log(err);
throw err;
}
2017-04-13 20:33:59 +03:00
console.log(`Listening at http://localhost:${server.address().port}`);
2016-10-10 18:37:26 +03:00
});