Skip to content

Commit e576e2e

Browse files
authored
fixed comments (#226)
1 parent 2d78c7b commit e576e2e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/api/waitlist/subscribe/route.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ export async function POST(request: NextRequest) {
44
try {
55
const body = await request.json();
66

7-
// Get the backend URL from environment or config
7+
88
const backendUrl =
99
process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8000/api';
1010

11-
// Forward the request to the backend
11+
1212
const response = await fetch(`${backendUrl}/waitlist/subscribe`, {
1313
method: 'POST',
1414
headers: {
1515
'Content-Type': 'application/json',
16-
// Forward any relevant headers
16+
1717
...(request.headers.get('user-agent') && {
1818
'User-Agent': request.headers.get('user-agent')!,
1919
}),

0 commit comments

Comments
 (0)