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 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 初始化
|
||||
|
Loading…
Reference in New Issue
Block a user