feat: add helper to detect system preference

This commit is contained in:
2026-03-03 21:47:07 +07:00
parent a6b2c77bd1
commit 02ad14d382
3 changed files with 74 additions and 0 deletions

View File

@ -0,0 +1,12 @@
import Elysia, { Context } from "elysia";
import { returnWriteResponse } from "../../helpers/callback/httpResponse";
export const systemPreferenceModule = new Elysia({
prefix: "/system-preference",
}).get("/", (ctx: Context) => {
return returnWriteResponse(
ctx.set,
200,
"System Preference module is up and running",
);
});