title: auto

des: auto
note:auto
This commit is contained in:
2023-10-03 09:32:00 +08:00
parent 6ac6720c66
commit bde21823de
10 changed files with 37 additions and 9 deletions

11
src/bin/config/index.ts Normal file
View File

@@ -0,0 +1,11 @@
"use server";
import yaml from "yaml";
import fs from "fs";
import path from "path";
const config: { server: { password: string } } = yaml.parse(
fs.readFileSync(path.join(__dirname, "./../../../config.yaml")).toString()
);
export async function getConfig() {
return config;
}