Created
January 2, 2026 15:15
-
-
Save ey-ron/1878b7fc54c8353f8a8ff70601aacced to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const CONFIG = { | |
| sheet_Retirement: "Retirement Plan", | |
| sheet_Spends: "Statement - Spends", | |
| sheet_Investment: "Investments", | |
| sheet_Assets: "Assets", | |
| sheet_Goals: "Savings Goals", | |
| sheet_Budget: "Budget & Expense", | |
| timezone: Session.getScriptTimeZone() | |
| }; | |
| // ========================================== | |
| // ROUTING | |
| // ========================================== | |
| function doGet(e) { | |
| const route = (e && e.parameter && e.parameter.page) ? e.parameter.page : 'exchangerate'; | |
| switch (route) { | |
| case 'dashboard': | |
| return db_loadDashboard(); | |
| case 'exchangerate': | |
| return ex_loadExchangeRatePage(); | |
| case 'widgyhome': | |
| return api_getWidgyHome(); | |
| case 'dash': | |
| return mock_loadDashboard(); | |
| default: | |
| return HtmlService.createHtmlOutput("<h3>Page not found.</h3>"); | |
| } | |
| } | |
| // ========================================== | |
| // HTML TEMPLATE HELPER | |
| // ========================================== | |
| function include(filename) { | |
| return HtmlService.createHtmlOutputFromFile(filename).getContent(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment