mirror of
https://github.com/System-End/site.git
synced 2026-04-20 00:25:19 +00:00
12 lines
353 B
JavaScript
12 lines
353 B
JavaScript
export default async function handler(req, res) {
|
|
const channelDataReq = await fetch(
|
|
`https://slack.com/api/conversations.info?channel=${req.body.id}`,
|
|
{
|
|
headers: {
|
|
Authorization: `Bearer ${process.env.SLACK_BOT_TOKEN}`
|
|
}
|
|
}
|
|
)
|
|
console.log(channelDataReq)
|
|
return res.status(200).send(channelDataReq)
|
|
}
|