ooye-nix-patches/matrix/read-registration.js
2023-05-01 17:05:47 +12:00

14 lines
283 B
JavaScript

// @ts-check
const fs = require("fs")
const yaml = require("js-yaml")
/**
* @typedef AppServiceRegistrationConfig
* @property {string} id
* @property {string} as_token
* @property {string} hs_token
*/
module.exports = yaml.load(fs.readFileSync("registration.yaml", "utf8"))