Merge branch 'join' into lukman/3-september-2024

This commit is contained in:
Amalia
2024-09-03 16:35:52 +08:00
committed by GitHub
31 changed files with 461 additions and 40 deletions

View File

@@ -8,7 +8,8 @@ export async function GET(request: Request) {
const { searchParams } = new URL(request.url);
const kategori = searchParams.get('cat');
const file = searchParams.get('file');
fl = fs.readFileSync(`./public/image/${kategori}/${file}`)
const jenis = searchParams.get('jenis');
fl = fs.readFileSync(`./public/${jenis}/${kategori}/${file}`)
} catch (err: any) {
throw err;
}