add http-server part 8.3.5
This commit is contained in:
parent
165b39ded7
commit
6c4094c27c
1 changed files with 3 additions and 1 deletions
|
@ -7,7 +7,9 @@ const port = 8090;
|
||||||
|
|
||||||
app.use(cors());
|
app.use(cors());
|
||||||
|
|
||||||
app.post('/api/command', (req, res) => {
|
//app.post('/api/command', (req, res) => {
|
||||||
|
|
||||||
|
app.post('/iching/api/command', (req, res) => {
|
||||||
executeCommand();
|
executeCommand();
|
||||||
res.status(200).send('Command executed\n');
|
res.status(200).send('Command executed\n');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue