Banda-Media/lunchMemo

View on GitHub
app/services/api/users.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { GetUserProfilesResponse } from '@typing/api';

export const getProfiles = async (uids: string[]): Promise<GetUserProfilesResponse> => {
  const response = await fetch(`/api/users/profiles`, {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({ uids }) //
  });
  return response.json();
};