deskripsi:
- pindah lib di dalam app ke src ( lib setara app dan app_modules )
This commit is contained in:
2025-02-12 10:57:10 +08:00
parent 8651357a3d
commit f419559379
904 changed files with 1129 additions and 1072 deletions

20
src/lib/APIs.ts Normal file
View File

@@ -0,0 +1,20 @@
const APIs = {
/**
*
* @param fileId | file id from wibu storage , atau bisa disimpan di DB
* @param size | file size 10 - 1000 , tergantung ukuran file dan kebutuhan saar di tampilkan
* @type {string}
*/
GET: ({ fileId, size }: { fileId: string; size?: string }) =>
size
? `https://wibu-storage.wibudev.com/api/files/${fileId}-size-${size}`
: `https://wibu-storage.wibudev.com/api/files/${fileId}`,
/**
* @type {string}
* @returns alamat API dari wibu storage
*/
GET_NO_PARAMS: "https://wibu-storage.wibudev.com/api/files/"
};
export default APIs;