Spaces:
Running
Running
Update server.js
Browse files
server.js
CHANGED
@@ -11,7 +11,7 @@ app.post('/get', async (req, res) => {
|
|
11 |
let property = req.body.day;
|
12 |
|
13 |
if (!sign || !property) {
|
14 |
-
return res.status(400).json({ error: '
|
15 |
}
|
16 |
|
17 |
aztroJs.getAllHoroscope(sign, function(res) {
|
|
|
11 |
let property = req.body.day;
|
12 |
|
13 |
if (!sign || !property) {
|
14 |
+
return res.status(400).json({ error: 'Требуются все параметры!' });
|
15 |
}
|
16 |
|
17 |
aztroJs.getAllHoroscope(sign, function(res) {
|