Rename Apollo backend service to backend
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# Fregat Apollo Backend
|
# Fregat Backend
|
||||||
|
|
||||||
GraphQL backend for Fregat client cabinet and manager cabinet.
|
GraphQL backend for Fregat client cabinet and manager cabinet.
|
||||||
|
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "fregat-apollo-backend",
|
"name": "fregat-backend",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "fregat-apollo-backend",
|
"name": "fregat-backend",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "fregat-apollo-backend",
|
"name": "fregat-backend",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ async function sendMaxMessage(channelId, message, options = {}) {
|
|||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
channelId,
|
channelId,
|
||||||
text: message,
|
text: message,
|
||||||
source: 'fregat-apollo-backend',
|
source: 'fregat-backend',
|
||||||
...(options.buttonUrl
|
...(options.buttonUrl
|
||||||
? {
|
? {
|
||||||
button: {
|
button: {
|
||||||
|
|||||||
@@ -585,7 +585,7 @@ app.use(
|
|||||||
|
|
||||||
const port = Number(process.env.PORT ?? 4000);
|
const port = Number(process.env.PORT ?? 4000);
|
||||||
app.listen(port, () => {
|
app.listen(port, () => {
|
||||||
console.log(`apollo-backend running at http://localhost:${port}/graphql`);
|
console.log(`backend running at http://localhost:${port}/graphql`);
|
||||||
});
|
});
|
||||||
|
|
||||||
async function shutdown() {
|
async function shutdown() {
|
||||||
|
|||||||
Reference in New Issue
Block a user