title: auto
des: auto note:auto
This commit is contained in:
11
src/bin/config/index.ts
Normal file
11
src/bin/config/index.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user