Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
@@ -34,7 +34,7 @@ app.post('/update', async (req, res) => {
|
|
34 |
|
35 |
app.post('/pl', async (req, res) => {
|
36 |
const prompt = req.body.prompt;
|
37 |
-
const lang = req.body.lang;
|
38 |
const apiKey = req.body.api || getRandomApiKey();
|
39 |
|
40 |
if (!prompt) {
|
|
|
34 |
|
35 |
app.post('/pl', async (req, res) => {
|
36 |
const prompt = req.body.prompt;
|
37 |
+
const lang = req.body.lang || "ru";
|
38 |
const apiKey = req.body.api || getRandomApiKey();
|
39 |
|
40 |
if (!prompt) {
|