acebase-server
Version:
AceBase realtime database server (webserver endpoint to allow remote connections)
30 lines • 918 B
TypeScript
import { IReflectionChildrenInfo, IReflectionNodeInfo } from 'acebase-core';
import { RouteInitEnvironment, RouteRequest } from '../shared/env';
export type RequestQuery = {
type: 'info' | 'children';
impersonate?: string;
};
export type RequestBody = null;
export type ResponseBody = IReflectionNodeInfo & IReflectionChildrenInfo & {
impersonation: {
uid: string;
read: {
allow: boolean;
error?: {
code: string;
message: string;
};
};
write: {
allow: boolean;
error?: {
code: string;
message: string;
};
};
};
};
export type Request = RouteRequest<RequestQuery, RequestBody, ResponseBody>;
export declare const addRoute: (env: RouteInitEnvironment) => void;
export default addRoute;
//# sourceMappingURL=data-reflect.d.ts.map