Initial implementation: Logbuch Sternwarte Welzheim
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>
This commit is contained in:
8
app/api/wetter/route.ts
Normal file
8
app/api/wetter/route.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
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 });
|
||||
}
|
||||
Reference in New Issue
Block a user