Files
geograsim/.dontDeploy/playwright/lehrplan-search.js
T
Adminator 1e51ef7def Nachtrag: alle bisher untracked Ordner + hängende Änderungen mit-committen
- Konzept/, didaktik_geografie/, didaktik_simulation/, v2-modules/, v2-platform/
- 12 code-workspace-Files
- STATUS-*.md
- viele M/D/R-Änderungen an bereits getrackten Files
- .gitignore verstärkt: **/.humaninput/, **/secret_keys.txt

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-08 02:27:02 +02:00

18 lines
700 B
JavaScript

const { chromium } = require('@playwright/test');
(async () => {
const browser = await chromium.launch();
const ctx = await browser.newContext();
// Try /api/lehrplan if it exists publicly
const r = await ctx.request.get('https://geograsim.at/api/lehrplan');
const txt = await r.text();
console.log('lehrplan API status:', r.status());
if (r.status() === 200) {
try {
const j = JSON.parse(txt);
const anchors = j.anchors || j.kompetenzen || j;
console.log('Sample keys:', Array.isArray(anchors) ? `array ${anchors.length}` : Object.keys(anchors).slice(0,5));
} catch { console.log('not json, head:', txt.substring(0,200)); }
}
await browser.close();
})();