diff --git a/server/endpoints.js b/server/endpoints.js index 5aa80d0..fe69323 100644 --- a/server/endpoints.js +++ b/server/endpoints.js @@ -34,28 +34,7 @@ router.get('/', (req, res) => { const noPlugins = req.query.noPlugins === 'true'; if (configExists() === false) { - let serialPorts; - - SerialPort.list().then((deviceList) => { - serialPorts = deviceList.map(port => ({ - path: port.path, - friendlyName: port.friendlyName, - })); - - parseAudioDevice((result) => { - res.render('wizard', { // Magical utility wizard - isAdminAuthenticated: true, - videoDevices: result.audioDevices, - audioDevices: result.videoDevices, - serialPorts: serialPorts, - tunerProfiles: tunerProfiles.map((profile) => ({ - id: profile.id, - label: profile.label, - detailsHtml: helpers.parseMarkdown(profile.details || '') - })) - }); - }); - }); + res.status(500).send("not configured"); } else { res.render('index', { isAdminAuthenticated: helpers.isAdmin(req), @@ -90,36 +69,6 @@ router.get('/403', (req, res) => { router.get('/audioonly', (req, res) => res.render('audioonly')) -router.get('/wizard', (req, res) => { - let serialPorts; - - if(!helpers.isAdmin(req)) { - res.render('login'); - return; - } - - SerialPort.list().then((deviceList) => { - serialPorts = deviceList.map(port => ({ - path: port.path, - friendlyName: port.friendlyName, - })); - - parseAudioDevice((result) => { - res.render('wizard', { - isAdminAuthenticated: helpers.isAdmin(req), - videoDevices: result.audioDevices, - audioDevices: result.videoDevices, - serialPorts: serialPorts, - tunerProfiles: tunerProfiles.map((profile) => ({ - id: profile.id, - label: profile.label, - detailsHtml: helpers.parseMarkdown(profile.details || '') - })) - }); - }); - }) -}) - router.get('/setup', (req, res) => { let serialPorts; function loadConfig() { diff --git a/views/wizard.ejs b/views/wizard.ejs deleted file mode 100644 index 6d7c724..0000000 --- a/views/wizard.ejs +++ /dev/null @@ -1,215 +0,0 @@ - - -
-
- Welcome to the setup wizard! Let's set up some basic things.
- -Leave the IP at 0.0.0.0 unless you explicitly know you have to change it.
DO NOT enter your public IP here.
Feel free to contact us on Discord for community support.
-