add config & api

This commit is contained in:
Warunee Tamkoo 2023-11-15 10:17:25 +07:00
parent 39532a4a0f
commit cdb9ec5b97
4 changed files with 62 additions and 0 deletions

7
src/api/api.checkin.ts Normal file
View file

@ -0,0 +1,7 @@
import env from "./index";
const leave = `${env.API_URI}/leave`;
export default {
checkin: () => `${leave}/check-in`,
checkTime: () => `${leave}/check-time`,
};