Skip to content

Commit

Permalink
Debugging the slack integration (#4)
Browse files Browse the repository at this point in the history
* Add new endpoints and improve tests

* remove char

* Fixes

* fix name

* Debugging

* okay this should work
  • Loading branch information
jameswburke authored Aug 8, 2024
1 parent 1a47dce commit f9e81eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api/v1/slack/notification-for-capture/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export const dynamic = 'force-dynamic';
*/
export async function POST(request) {
try {
const prefix = request.nextUrl.searchParams.get('prefix');
const link = `https://pmc-wayback-machine.vercel.app/#${prefix}`;
const { prefix = '' } = await request.json();
const link = `https://${process.env.NEXT_PUBLIC_URL}/#${prefix}`;
const message = `<${link}|New Screenshots!>`;

const success = await slackWebApi.chat.postMessage({
Expand Down

0 comments on commit f9e81eb

Please sign in to comment.