feat: create login request api (in comments)
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user