@raopics/plugin-api
v1.7.0
Published
Transform sqlite database to web api.
Downloads
3
Readme
@raopics/plugin-api
Useage
import PLUGIN_API from "@raopics/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