rename REPORT_SECRET env variable to API_SECRET
All checks were successful
delpoy / build-and-deploy (push) Successful in 48s
All checks were successful
delpoy / build-and-deploy (push) Successful in 48s
This commit is contained in:
@@ -4,7 +4,7 @@ import { env } from '$env/dynamic/private';
|
||||
import { Op } from 'sequelize';
|
||||
|
||||
export const GET = (async ({ url }) => {
|
||||
if (env.REPORT_SECRET && url.searchParams.get('secret') !== env.REPORT_SECRET)
|
||||
if (env.API_SECRET && url.searchParams.get('secret') !== env.API_SECRET)
|
||||
return new Response(null, { status: 401 });
|
||||
|
||||
const uuid = url.searchParams.get('uuid');
|
||||
|
||||
Reference in New Issue
Block a user