import { post , get } from 'YesterTech/api/utils' ; import { UserNoId , User , UserId } from 'YesterTech/types' ; export async function registerUser ( data ) { return await post < User > ( `/users` , data ) ; } export function getUser ( userId ) { return get ( `/users/${ userId }` ) ; }