This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { WebClient } from "@slack/web-api"; | |
| export default async function handler(req, res) { | |
| if (req.method !== "POST") { | |
| return res.status(405).json({ error: "Method not allowed" }); | |
| } | |
| const splunkEvent = req.body; | |
| const slackMessage = formatMessage(splunkEvent); |