Skip to content

Commit

Permalink
Add JOSM responses to server-handlers
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <tsmock@meta.com>
  • Loading branch information
tsmock committed May 25, 2023
1 parent 8de2982 commit 1ff6121
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frontend/src/network/tests/server-handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,15 @@ const handlers = [
rest.get('http://127.0.0.1:8111/version', (req, res, ctx) => {
return res(ctx.json(josmRemote));
}),
rest.get('http://127.0.0.1:8111/load_data', (req, res, ctx) => {
return res(ctx.text('OK'));
}),
rest.get('http://127.0.0.1:8111/load_and_zoom', (req, res, ctx) => {
return res(ctx.text('OK'));
}),
rest.get('http://127.0.0.1:8111/import', (req, res, ctx) => {
return res(ctx.text('OK'));
}),
];

const failedToConnectError = (req, res, ctx) => {
Expand Down

0 comments on commit 1ff6121

Please sign in to comment.