Vollständige Next.js 16 Webanwendung als Logbuch für die Sternwarte Welzheim. 4 Kuppeln (West/Ost/Süd/Pluto), BEO-basierte Authentifizierung mit erzwungenem Passwort-Wechsel beim Erstlogin, MySQL-Backend, Docker-Deployment. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
9 lines
327 B
TypeScript
9 lines
327 B
TypeScript
import { NextResponse } from 'next/server';
|
|
|
|
export async function GET() {
|
|
const temp = Math.round((8 + Math.random() * 15) * 10) / 10;
|
|
const feuchte = Math.round((40 + Math.random() * 50) * 10) / 10;
|
|
const druck = Math.round((990 + Math.random() * 30) * 10) / 10;
|
|
return NextResponse.json({ temp, feuchte, druck });
|
|
}
|