gitpush
This commit is contained in:
parent
49d96d4bdd
commit
67d7fc08e2
@ -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 server = app.listen(port, host, () => console.log(`rpi sense hat server is running at port http://${host}:${port}`))
|
||||||
const io = socketio(server)
|
const io = socketio(server)
|
||||||
|
|
||||||
app.get('/sensehat', (req, res) => {
|
app.get('/', (req, res) => {
|
||||||
res.sendStatus('ok', 200)
|
res.sendStatus(200, 'RPi Sense HAT API is ON.')
|
||||||
})
|
})
|
||||||
|
|
||||||
// Sense HAT 初始化
|
// Sense HAT 初始化
|
||||||
|
Loading…
Reference in New Issue
Block a user