This commit is contained in:
赵鑫 2022-09-04 15:57:22 +08:00
parent 49d96d4bdd
commit 67d7fc08e2

View File

@ -10,8 +10,8 @@ const app = express()
const server = app.listen(port, host, () => console.log(`rpi sense hat server is running at port http://${host}:${port}`))
const io = socketio(server)
app.get('/sensehat', (req, res) => {
res.sendStatus('ok', 200)
app.get('/', (req, res) => {
res.sendStatus(200, 'RPi Sense HAT API is ON.')
})
// Sense HAT 初始化