feat: create login request api (in comments)

This commit is contained in:
kur0nek-o
2024-05-06 19:29:07 +07:00
parent f0c12defa1
commit 91ce87d06f
2 changed files with 64 additions and 18 deletions

View File

@ -18,6 +18,16 @@ const getUp3 = async (uid: number) => await instance.get('/up3?uid=' + uid)
const getUlp = async (up3: number) => await instance.get('/ulp?up3=' + up3)
const getPosko = async (uppp: number) => await instance.get('/posko?up3=' + uppp)
const getVersion = async () => await ax.get('/version.json')
const authenticateUser = async (username: string, password: string) => {
const res = await instance.post('/auth', {
username,
password
})
return res.data
}
export {
getUid,
getUp3,
@ -27,5 +37,6 @@ export {
getJenisTransaksi,
getUidRegional,
getRegional,
getVersion
getVersion,
authenticateUser
}