| 3 | import { NextRequest, NextResponse } from 'next/server'; |
| 4 | |
| 5 | interface DiscordData { |
| 6 | type: string; |
| 7 | thumbnail: string; |
| 8 | title: string; |
| 9 | courseTitle: string; |
| 10 | courseId: number; |
| 11 | currFolderId: number; |
| 12 | mediaId: number; |
| 13 | } |
| 14 | |
| 15 | const sendUpdateToDiscord = async (data: DiscordData) => { |
| 16 | const body = { |
nothing calls this directly
no outgoing calls
no test coverage detected