Atualizar src/main.mjs
Some checks failed
Build and Publish Docker Image / build (push) Has been cancelled

This commit is contained in:
LucasViniciusTI 2026-02-05 15:56:05 +00:00
parent 082e0a5405
commit 8965c6deea

View file

@ -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()) {