🚩 create basic flow for fetching user data

This commit is contained in:
Rafi Arrafif
2025-07-17 23:20:00 +07:00
parent 30806e23e0
commit 9bc1b592d0
5 changed files with 58 additions and 12 deletions

View File

@ -0,0 +1,11 @@
import { Context } from "elysia";
export const parseArrayQuery = <T extends string = string>(
query: Context["query"],
key: string
): T[] => {
const raw = query[key];
if (!raw) return [];
return raw.split(",").map((s) => s.trim()) as T[];
};