|
|
@@ -16,7 +16,7 @@ export default (langName, lang) => new Elysia()
|
|
|
})
|
|
|
.get('/settings', ({ set }) => {
|
|
|
set.headers['content-type'] = 'text/html; charset=utf8'
|
|
|
- return eta.render(`${langName}/settings`, { wifiIPv4: getWifiIPv4(), postDataEnabled: process.env.POST_DATA_ENABLED, cloudURL: process.env.BACKEND_URL, websocketKey: BACKEND_WEBSOCKET_KEY })
|
|
|
+ return eta.render(`${langName}/settings`, { wifiIPv4: getWifiIPv4(), postDataEnabled: process.env.POST_DATA_ENABLED, cloudURL: process.env.BACKEND_URL, websocketKey: process.env.BACKEND_WEBSOCKET_KEY })
|
|
|
})
|
|
|
.post('/settings', async ({ body, set, redirect }) => {
|
|
|
const postDataEnabled = body?.postDataEnabled
|