Enterprise-CMCS/macpro-mako

View on GitHub
react-app/src/api/itemExists.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { API } from "aws-amplify";

export const itemExists = async (id: string): Promise<boolean> => {
  const response = await API.post("os", "/itemExists", { body: { id } });
  return response.exists;
};