@eagleuse/plugin-api
v1.2.3
Published
Transform sqlite database to web api.
Downloads
55
Readme
@eagleuse/plugin-api
Useage
import PLUGIN_API from "@eagleuse/plugin-api";
PLUGIN_API({
library: "/Users/qymeet/Pictures/rao.library",
});
Args
interface Args {
library: string;
port?: number;
registerCallback?: (fastify: FastifyInstance) => void;
}
Random
Get a random image.
- /api/r
GET
- /api/random
GET
- /random
GET
- /r
GET
Image
- /image
POST
- /image/:id
GET
Folder
- /folder
POST
Tag
- /tag
POST
TagsGroups
- /tags-groups
POST