sync: 2026-03-15 22:00 — 33 files from Alexandria
Some checks failed
Lint & Format / detect (push) Failing after 40s
Monorepo Lint / lint-shell (push) Failing after 29s
Monorepo Lint / lint-js (push) Failing after 41s
Lint & Format / js-lint (push) Has been skipped
Lint & Format / py-lint (push) Has been skipped
Lint & Format / sh-lint (push) Has been skipped
Lint & Format / go-lint (push) Has been skipped
Some checks failed
Lint & Format / detect (push) Failing after 40s
Monorepo Lint / lint-shell (push) Failing after 29s
Monorepo Lint / lint-js (push) Failing after 41s
Lint & Format / js-lint (push) Has been skipped
Lint & Format / py-lint (push) Has been skipped
Lint & Format / sh-lint (push) Has been skipped
Lint & Format / go-lint (push) Has been skipped
RoadChain-SHA2048: 2867f1c5c7b75253 RoadChain-Identity: alexa@sovereign RoadChain-Full: 2867f1c5c7b75253f424feccd6bc0ca63474c4af16caab7c3067b501a8743b73868caa3468453e496cf5a883d0cd7ac2e3e0c4671c1f507f6973a7a81b6ba2a67cf432e61099d82d1862493cd627bbfcd5667f98aa51d6573436778b7255e1f02566fdd7b226ac767cab1ff8d6f74a2872ad8374678723f75d62e8cebf5aacc9c4b7e2153b65e1254175a98899b0a602b58808acd14d63bc09c14063116b5ae67097c59a5970734bec7805a1f122201568a4624707d168301a4c71050fc3c2d248036b82c7590a7316da65cb2828ffa2d5d1791a8f4caeabecaab0915cffa0814b9c76f1eead115756ddf0ddaa5b122e347343da28ae60680983be30b1ec8d50
This commit is contained in:
@@ -38,9 +38,8 @@ export default {
|
||||
try {
|
||||
// ── Push data from collector ──
|
||||
if (path === '/push' && request.method === 'POST') {
|
||||
const authKey = request.headers.get('Authorization')?.replace('Bearer ', '') ||
|
||||
url.searchParams.get('key');
|
||||
if (authKey !== env.STATS_KEY) return json({ error: 'unauthorized' }, 401);
|
||||
const authKey = request.headers.get('Authorization')?.replace('Bearer ', '');
|
||||
if (!authKey || authKey !== env.STATS_KEY) return json({ error: 'unauthorized — use Authorization header' }, 401);
|
||||
|
||||
const body = await request.json();
|
||||
const { category, data } = body;
|
||||
|
||||
Reference in New Issue
Block a user