Commit 85ace97026f1837138bbaa10a41377ccb2db768f
1 parent
6223a498
Exists in
master
and in
1 other branch
adiciona endpoint /dicionario
Showing
2 changed files
with
6 additions
and
2 deletions
Show diff stats
logsystem/services.log
@@ -6,9 +6,9 @@ | @@ -6,9 +6,9 @@ | ||
6 | "saude": 0 | 6 | "saude": 0 |
7 | }, | 7 | }, |
8 | "outros": { | 8 | "outros": { |
9 | - "requisicoes": 129, | 9 | + "requisicoes": 133, |
10 | "traducoes": 129, | 10 | "traducoes": 129, |
11 | - "saude": 1 | 11 | + "saude": 0 |
12 | } | 12 | } |
13 | } | 13 | } |
14 | } | 14 | } |
15 | \ No newline at end of file | 15 | \ No newline at end of file |
server.js
@@ -192,6 +192,10 @@ app.get('/limparfila', function(req, res) { | @@ -192,6 +192,10 @@ app.get('/limparfila', function(req, res) { | ||
192 | res.send(200, "Fila limpa"); | 192 | res.send(200, "Fila limpa"); |
193 | }); | 193 | }); |
194 | 194 | ||
195 | +app.get('/dicionario', function(req, res){ | ||
196 | + res.send(200, { 'versao': '1.0' } ); | ||
197 | +}); | ||
198 | + | ||
195 | // precisa ficar no final caso o request n bata com nenhuma rota anterior | 199 | // precisa ficar no final caso o request n bata com nenhuma rota anterior |
196 | app.get('/*', function(req, res){ | 200 | app.get('/*', function(req, res){ |
197 | logger.incrementError("4", "Rota nao encontrada"); | 201 | logger.incrementError("4", "Rota nao encontrada"); |