mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
add back signon endpoint
This commit is contained in:
@@ -2165,6 +2165,11 @@ rest_server.post(UPLOAD_FILE_ENDPOINT, progress_middleware, upload.single('file'
|
||||
return res.sendStatus(400);
|
||||
});
|
||||
|
||||
rest_server.post(SIGN_IN_ENDPOINT, (req, res) => {
|
||||
console.log('Signed in');
|
||||
res.json(signin);
|
||||
});
|
||||
|
||||
rest_server.get(GENERATE_TOKEN_ENDPOINT, (req, res) => {
|
||||
res.json(generate_token);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user