Add API key settings panel to dashboard
- Station API Keys section at bottom of dashboard (auto-opens if unconfigured) - Shows configured/missing status on load - Fields for Ambient API Key and Application Key; saves via existing endpoint - POST /api/ambient-config now requires dashboard auth Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
fa4895a741
commit
4aca8df808
2 files changed
+89
-1
No files matched your search
+1
-1
@@ -558,7 +558,7 @@ function saveAmbientConfig() {
|
||||
const ambientCaches = new Map();
|
||||
|
||||
// Save keys server-side so all devices share them
|
||||
app.post('/api/ambient-config', (req, res) => {
|
||||
app.post('/api/ambient-config', requireDashboardAuth, (req, res) => {
|
||||
const { apiKey, appKey } = req.body || {};
|
||||
if (!apiKey || !appKey) return res.status(400).json({ error: 'apiKey and appKey required' });
|
||||
ambientServerConfig = { apiKey, appKey };
|
||||
|
||||
Reference in new issue
Block a user