Atualizar src/main.mjs
Some checks failed
Build and Publish Docker Image / build (push) Has been cancelled
Some checks failed
Build and Publish Docker Image / build (push) Has been cancelled
This commit is contained in:
parent
082e0a5405
commit
8965c6deea
1 changed files with 6 additions and 0 deletions
|
|
@ -11,6 +11,12 @@ app.use(bodyParser.json());
|
||||||
app.use(bodyParser.urlencoded({ extended: true }));
|
app.use(bodyParser.urlencoded({ extended: true }));
|
||||||
app.use(cors());
|
app.use(cors());
|
||||||
|
|
||||||
|
app.get('/', (req, res) => {
|
||||||
|
res.status(200).json({
|
||||||
|
message: 'Estou rodando'
|
||||||
|
})
|
||||||
|
});
|
||||||
|
|
||||||
// Rota para verificar status do dispositivo
|
// Rota para verificar status do dispositivo
|
||||||
app.get('/status/:serialNumber', async (req, res) => {
|
app.get('/status/:serialNumber', async (req, res) => {
|
||||||
if (!dentroHorarioExpediente()) {
|
if (!dentroHorarioExpediente()) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue