Update server.js
Browse files
server.js
CHANGED
@@ -37,12 +37,11 @@ app.post('/update', async (req, res) => {
|
|
37 |
app.post('/pl', async (req, res) => {
|
38 |
const prompt = req.body.prompt;
|
39 |
const apiKey = req.body.api || getRandomApiKey();
|
40 |
-
const prs = "";
|
41 |
|
42 |
if (req.body.mode = "1") {
|
43 |
-
prs = start;
|
44 |
}else{
|
45 |
-
prs = startconnect;
|
46 |
}
|
47 |
|
48 |
if (!prompt) {
|
@@ -80,12 +79,11 @@ app.post('/pl', async (req, res) => {
|
|
80 |
app.post('/plbeta', async (req, res) => {
|
81 |
const prompt = req.body.prompt;
|
82 |
const apiKey = req.body.api || getRandomApiKey();
|
83 |
-
const prs = "";
|
84 |
|
85 |
if (req.body.mode = "1") {
|
86 |
-
prs = start;
|
87 |
}else{
|
88 |
-
prs = startconnect;
|
89 |
}
|
90 |
|
91 |
if (!prompt) {
|
|
|
37 |
app.post('/pl', async (req, res) => {
|
38 |
const prompt = req.body.prompt;
|
39 |
const apiKey = req.body.api || getRandomApiKey();
|
|
|
40 |
|
41 |
if (req.body.mode = "1") {
|
42 |
+
const prs = start;
|
43 |
}else{
|
44 |
+
const prs = startconnect;
|
45 |
}
|
46 |
|
47 |
if (!prompt) {
|
|
|
79 |
app.post('/plbeta', async (req, res) => {
|
80 |
const prompt = req.body.prompt;
|
81 |
const apiKey = req.body.api || getRandomApiKey();
|
|
|
82 |
|
83 |
if (req.body.mode = "1") {
|
84 |
+
const prs = start;
|
85 |
}else{
|
86 |
+
const prs = startconnect;
|
87 |
}
|
88 |
|
89 |
if (!prompt) {
|