12 lines
397 B
TypeScript
12 lines
397 B
TypeScript
import express from "express";
|
|
import { success, error } from "@/lib/responseFormat";
|
|
import u from "@/utils";
|
|
import initDB from "@/lib/initDB";
|
|
|
|
const router = express.Router();
|
|
|
|
export default router.get("/", async (req, res) => {
|
|
const switchAiDevTool = await u.db("o_setting").where("key", "switchAiDevTool").first();
|
|
res.status(200).send(success(switchAiDevTool?.value || "0"));
|
|
});
|