You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
362 B
17 lines
362 B
const app = require('express')(); |
|
const fs = require('fs'); |
|
|
|
app.listen(13432 /*default port*/, () => console.log('Ushio-win-server listening on port 13432!')); |
|
|
|
app.get('/', (req, res) => { |
|
res.send('This is Ushio-win-server!!'); |
|
}); |
|
|
|
app.get('/getMsg', (req, res) => { |
|
if(!req.query.hasOwnProperty('id')){ |
|
res.send(''); |
|
return; |
|
} |
|
|
|
res.send('test'); |
|
}); |