UNPKG

dok-db-manager

Version:
14 lines (13 loc) 515 B
import express from "express"; import { DbApi } from "@dobuki/data-client"; import { AuthManager } from "dok-auth"; interface Props { githubApi: DbApi; auth: AuthManager; owner: string; repo: string; moderator?: (imageUrl: string) => Promise<boolean>; } export declare function addPutDataRoute(app: express.Express, { githubApi, auth, owner, repo }: Props): void; export declare function addUploadRoute(app: express.Express, { githubApi, auth, owner, repo, moderator }: Props): void; export {};