Desc:
- Fitur config untuk error pada server di bagian .env PWD
- Fitur home dan tampilan menu
This commit is contained in:
2023-10-03 11:56:33 +08:00
parent fa46a3f055
commit 9a914bb513
9 changed files with 186 additions and 42 deletions

View File

@@ -9,6 +9,9 @@ import fs from "fs";
import yaml from "yaml";
const config = yaml.parse(fs.readFileSync("config.yaml").toString());
/**
* @returns token(id and username)
*/
export async function getToken() {
const c = cookies().get("ssn");