diff --git a/.sample-env b/.sample-env index 6aace81..45ee121 100644 --- a/.sample-env +++ b/.sample-env @@ -2,3 +2,4 @@ SNIPBOT_PORT=5000 SNIPBOT_AIRTABLE_API_KEY=YOUR_API_KEY SNIPBOT_AIRTABLE_BASE_ID=YOUR_AIRTABLE_BASE_ID SNIPBOT_AIRTABLE_ENDPOINT=https://api.airtable.com +SNIPBOT_MATTERMOST_TOKEN=YOUR_SLASH_COMMAND_TOKEN diff --git a/index.js b/index.js index 7e43ffd..5c41896 100644 --- a/index.js +++ b/index.js @@ -32,7 +32,7 @@ app.post("/add", (req, res) => { res.send({ result: a + b }) }) -app.get("/articles", (req, res) => { +app.post("/edcal", (req, res) => { let articles = [] base('Articles').select({