mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-01-06 21:19:39 -06:00
Added a security warning to the api
This commit is contained in:
@@ -50,6 +50,11 @@ if (process.env.NODE_ENV === 'production') {
|
||||
app.get('*', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '../build', 'index.html'));
|
||||
});
|
||||
} else {
|
||||
app.get("*", (req, res) => {
|
||||
res.status(500).send("<h2>Diese MySpeed-Instanz befindet sich aktuell im Entwicklungsmodus.<br/><br/>"
|
||||
+ "Wenn du der Betreiber bist, bitte ändere deine Umgebungsvariable ab.</h2>");
|
||||
});
|
||||
}
|
||||
|
||||
// Make a speedtest
|
||||
|
||||
Reference in New Issue
Block a user