Apply Gitignore

This commit is contained in:
Arnaud Nelissen
2022-01-18 08:45:26 +01:00
parent 440f5a7931
commit 3e7bcc81cf
5886 changed files with 1306 additions and 590035 deletions

View File

@@ -1,30 +1,30 @@
const services = require('../services')
const { firmware } = services
const postLookFirmware = async (req, res, next) => {
const { serialNumber, hash, version, type, hardwareIndex, hardwareVersion } = req.body
try {
const obj = await firmware.lookFirmware(serialNumber, hash, version, type, hardwareIndex, hardwareVersion)
res.send(obj)
} catch (e) {
console.log(e.message)
res.sendStatus(500)
}
}
const postSyncFirmware = async (req, res, next) => {
const { serialNumber, hash, version, type, hardwareIndex, hardwareVersion } = req.body
try {
const obj = await firmware.syncFirmware(serialNumber, hash, version, type, hardwareIndex, hardwareVersion)
res.send(obj)
} catch (e) {
console.log(e.message)
res.sendStatus(500)
}
}
module.exports = {
postLookFirmware,
postSyncFirmware
const services = require('../services')
const { firmware } = services
const postLookFirmware = async (req, res, next) => {
const { serialNumber, hash, version, type, hardwareIndex, hardwareVersion } = req.body
try {
const obj = await firmware.lookFirmware(serialNumber, hash, version, type, hardwareIndex, hardwareVersion)
res.send(obj)
} catch (e) {
console.log(e.message)
res.sendStatus(500)
}
}
const postSyncFirmware = async (req, res, next) => {
const { serialNumber, hash, version, type, hardwareIndex, hardwareVersion } = req.body
try {
const obj = await firmware.syncFirmware(serialNumber, hash, version, type, hardwareIndex, hardwareVersion)
res.send(obj)
} catch (e) {
console.log(e.message)
res.sendStatus(500)
}
}
module.exports = {
postLookFirmware,
postSyncFirmware
}