Update main.ts
Browse files
main.ts
CHANGED
|
@@ -393,6 +393,9 @@ function verifyApiKey(request: Request) {
|
|
| 393 |
}
|
| 394 |
|
| 395 |
if (authorization !== VALID_API_KEY) {
|
|
|
|
|
|
|
|
|
|
| 396 |
return new Response(JSON.stringify({ error: 'Invalid API key' }), {
|
| 397 |
status: 401,
|
| 398 |
headers: {
|
|
|
|
| 393 |
}
|
| 394 |
|
| 395 |
if (authorization !== VALID_API_KEY) {
|
| 396 |
+
console.log(authorization)
|
| 397 |
+
console.log("----")
|
| 398 |
+
console.log(VALID_API_KEY)
|
| 399 |
return new Response(JSON.stringify({ error: 'Invalid API key' }), {
|
| 400 |
status: 401,
|
| 401 |
headers: {
|