Skip to content

Commit

Permalink
Merge pull request #17 from nrkno/fix/api-race-conditions
Browse files Browse the repository at this point in the history
Fix: Avoid error when sending double API calls (SOFIE-3242)
  • Loading branch information
nytamin authored Jun 24, 2024
2 parents 08636e0 + 321c233 commit 1d807b9
Show file tree
Hide file tree
Showing 3 changed files with 217 additions and 121 deletions.
6 changes: 3 additions & 3 deletions src/helpers/APIHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ export class APIHelper {
ctx.body = `
<a href="/api/status?apiKey=${this.config?.apiKey}">GET /api/status</a><br>
<a href="/api/list?apiKey=${this.config?.apiKey}">GET /api/list</a><br>
POST /api/playURL/:windowId body: {"url": "", "jsCode": "" }<br>
POST /api/restart/:windowId<br>
POST /api/stop/:windowId<br>
PUT /api/playURL/:windowId body: {"url": "", "jsCode": "" }<br>
PUT /api/restart/:windowId<br>
PUT /api/stop/:windowId<br>
POST /api/execute/:windowId body: {"jsCode": "" }<br>
`
})
Expand Down
Loading

0 comments on commit 1d807b9

Please sign in to comment.