Consolidate config files and surface frontend values via API. Closes #30
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// add more to the promises later.
|
||||
class Config {
|
||||
async init() {
|
||||
const configFileLocation = "./js/config.json";
|
||||
const configFileLocation = "/config";
|
||||
|
||||
try {
|
||||
const response = await fetch(configFileLocation);
|
||||
|
||||
Reference in New Issue
Block a user