stitch-ui
Version:
13 lines (10 loc) • 370 B
JavaScript
import { makeKeyActions } from "../auth/apikeys";
const NAME = "profile/";
const profileKeysRoot = client => client.profile().keys();
const profileKeyRoot = (client, keyId) => client.profile().keys().apiKey(keyId);
// eslint-disable-next-line import/prefer-default-export
export const profileKeyActions = makeKeyActions(
NAME,
profileKeysRoot,
profileKeyRoot
);