Skip to content

Commit

Permalink
a couple random routes didn't have :sessionId as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonahss committed Jul 9, 2014
1 parent 21cada6 commit 9c21397
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/server/routing.js
Expand Up @@ -44,17 +44,17 @@ module.exports = function (appium) {
rest.post('/wd/hub/session/:sessionId?/dismiss_alert', controller.postDismissAlert);
rest.post('/wd/hub/session/:sessionId?/timeouts/implicit_wait', controller.implicitWait);
rest.post('/wd/hub/session/:sessionId?/timeouts/async_script', controller.asyncScriptTimeout);
rest.get('/wd/hub/session/:sessionId/orientation', controller.getOrientation);
rest.post('/wd/hub/session/:sessionId/orientation', controller.setOrientation);
rest.get('/wd/hub/session/:sessionId/screenshot', controller.getScreenshot);
rest.get('/wd/hub/session/:sessionId?/orientation', controller.getOrientation);
rest.post('/wd/hub/session/:sessionId?/orientation', controller.setOrientation);
rest.get('/wd/hub/session/:sessionId?/screenshot', controller.getScreenshot);
rest.post('/wd/hub/session/:sessionId?/element/:elementId?/element', controller.findElementFromElement);
rest.post('/wd/hub/session/:sessionId?/element/:elementId?/elements', controller.findElementsFromElement);
rest.post('/wd/hub/session/:sessionId?/touch/click', controller.doClick);
rest.post('/wd/hub/session/:sessionId?/touch/longclick', controller.touchLongClick);
rest.post('/wd/hub/session/:sessionId?/touch/down', controller.touchDown);
rest.post('/wd/hub/session/:sessionId?/touch/up', controller.touchUp);
rest.post('/wd/hub/session/:sessionId?/touch/move', controller.touchMove);
rest.post('/wd/hub/session/:sessionId/touch/flick', controller.pickAFlickMethod);
rest.post('/wd/hub/session/:sessionId?/touch/flick', controller.pickAFlickMethod);
rest.post('/wd/hub/session/:sessionId?/url', controller.postUrl);
rest.get('/wd/hub/session/:sessionId?/url', controller.getUrl);
rest.post('/wd/hub/session/:sessionId?/element/active', controller.active);
Expand Down

0 comments on commit 9c21397

Please sign in to comment.