docs: clean upload documentation
This commit is contained in:
+1
-2
@@ -2,8 +2,7 @@ import { timingSafeEqual } from 'crypto'
|
||||
import { NextRequest, NextResponse } from 'next/server'
|
||||
|
||||
/**
|
||||
* Validate the upload secret from request headers.
|
||||
* Returns null if valid, or a NextResponse error if invalid.
|
||||
* Validate the shared upload secret before accepting mutation routes.
|
||||
*/
|
||||
export function validateUploadSecret(req: NextRequest): NextResponse | null {
|
||||
const secret = req.headers.get('x-upload-secret')
|
||||
|
||||
Reference in New Issue
Block a user