This commit is contained in:
He
2025-03-25 21:47:40 +08:00
commit dc2b36db5d
73 changed files with 6154 additions and 0 deletions

21
app/random-image/route.ts Normal file
View File

@@ -0,0 +1,21 @@
import { type NextRequest, NextResponse } from "next/server"
export async function GET(request: NextRequest) {
// List of image URLs
const imageUrls = [
"https://zh.yuazhi.cn/apipng/18CD3BE92227887D576B2D4B7A9C9960.jpg",
"https://zh.yuazhi.cn/apipng/1.jpg",
"https://zh.yuazhi.cn/apipng/2.jpg",
"https://zh.yuazhi.cn/apipng/3.jpg",
"https://zh.yuazhi.cn/apipng/4.jpg",
"https://zh.yuazhi.cn/apipng/5.jpg",
]
// Select a random image URL
const randomIndex = Math.floor(Math.random() * imageUrls.length)
const randomImageUrl = imageUrls[randomIndex]
// Redirect to the random image
return NextResponse.redirect(randomImageUrl)
}