Fakultas Ilmu Komputer UI

index.ts 334 Bytes
Newer Older
1
import { api, RequestMethod, ApiResponse } from '../api';
2
3

import * as apiUrls from './urls';
4
import { DietProfileRequest, DietProfileResponse } from './models';
5

6
7
8
export const createDietProfileApi = (
  body: DietProfileRequest,
): ApiResponse<DietProfileResponse> => {
9
10
  return api(RequestMethod.POST, apiUrls.dietProfile, body);
};