Spaces:
Running
Running
Enhanced Endpoints
Browse files
server.js
CHANGED
@@ -63,7 +63,7 @@ async function Prompt(error, tentativas){
|
|
63 |
return result;
|
64 |
}
|
65 |
|
66 |
-
app.get('/', async (req, res) => {
|
67 |
|
68 |
let tentativas = req.query.tentativas;
|
69 |
|
@@ -88,6 +88,10 @@ app.get('/', async (req, res) => {
|
|
88 |
res.json({text:txtFinal})
|
89 |
})
|
90 |
|
|
|
|
|
|
|
|
|
91 |
app.listen(port, () => {
|
92 |
console.log(`JayCoach running`)
|
93 |
})
|
|
|
63 |
return result;
|
64 |
}
|
65 |
|
66 |
+
app.get('/error', async (req, res) => {
|
67 |
|
68 |
let tentativas = req.query.tentativas;
|
69 |
|
|
|
88 |
res.json({text:txtFinal})
|
89 |
})
|
90 |
|
91 |
+
app.get('/test', async (req, res) => {
|
92 |
+
res.send("Working!")
|
93 |
+
})
|
94 |
+
|
95 |
app.listen(port, () => {
|
96 |
console.log(`JayCoach running`)
|
97 |
})
|