KooriMoe / Random-Img

基于 Node.JS 的随机图片 API.

Home Page:https://api.sakurark.com/random-img

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Random-Img

这个接口不是人写的(指 GitHub Copilot 写了一大部分,已经变成 Tab 工具人了...

Dependencies

  • express
  • fs

Usage

// Start the Express server.
node app.js

GET http://127.0.0.1:4000/random-img[params]
params:
    json = true: Output as JSON instead of redirecting directly to an image.

Add photos to database

Modify the img-urls.csv file plz.

About

基于 Node.JS 的随机图片 API.

https://api.sakurark.com/random-img


Languages

Language:JavaScript 100.0%