@zyrab/domo-ssg
Version:
A Static Site Generator (SSG) for Domo-based projects.
18 lines (14 loc) • 335 B
JavaScript
// src/registry.js
class BuildRegistry {
constructor() {
this.routePaths = {};
}
setRoutes(routes) {
this.routePaths = routes;
}
getRoute(name) {
return this.routePaths[name];
}
}
// Export a single instance to be shared across the build process
export const registry = new BuildRegistry();