@intuitionrobotics/db-api-generator
Version:
31 lines • 776 B
JavaScript
import {} from "@intuitionrobotics/firebase";
import { HttpMethod } from "@intuitionrobotics/thunderstorm";
export const DefaultApiDefs = {
Create: {
method: HttpMethod.POST,
key: "create",
suffix: "create"
},
Update: {
method: HttpMethod.POST,
key: "update",
suffix: "update"
},
Delete: {
method: HttpMethod.GET, // delete doesn't works, so we changed it to get
key: "delete",
suffix: "delete"
},
Unique: {
method: HttpMethod.GET,
key: "unique",
suffix: "unique"
},
Query: {
method: HttpMethod.POST,
key: "query",
suffix: "query"
},
};
export const ErrorKey_BadInput = "bad-input";
//# sourceMappingURL=types.js.map