Skip to content

Commit

Permalink
finish off routing for #2226
Browse files Browse the repository at this point in the history
  • Loading branch information
jlipps committed Apr 4, 2014
1 parent c2cc280 commit 5ceb9bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/devices/ios/ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,10 @@ IOS.prototype.configureApp = function (cb) {
var _cb = cb;
cb = function (err) {
if (err) {
err = new Error("Bad app: " + this.args.app + ". App paths need to be absolute, " +
" relative to the appium server install dir, URL to compressed file, " +
" or special app name. cause: " + err);
err = new Error("Bad app: " + this.args.app + ". App paths need to be " +
"absolute, or relative to the appium server install " +
"dir, or a URL to compressed file, or a special app " +
"name. cause: " + err);
}
_cb(err);
};
Expand Down
3 changes: 3 additions & 0 deletions lib/server/routing.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ module.exports = function (appium) {
rest.get('/wd/hub/session/:sessionId?/appium/device/app_installed', controller.isAppInstalled);
rest.post('/wd/hub/session/:sessionId?/appium/device/push_file', controller.pushFile);
rest.get('/wd/hub/session/:sessionId?/appium/device/pull_file', controller.pullFile);
rest.post('/wd/hub/session/:sessionId?/appium/device/toggle_airplane_mode', controller.toggleFlightMode);
rest.post('/wd/hub/session/:sessionId?/appium/device/toggle_wifi', controller.toggleWiFi);
rest.post('/wd/hub/session/:sessionId?/appium/device/toggle_location_services', controller.toggleLocationServices);

rest.post('/wd/hub/session/:sessionId?/appium/app/launch', controller.launchApp);
rest.post('/wd/hub/session/:sessionId?/appium/app/close', controller.closeApp);
Expand Down

0 comments on commit 5ceb9bb

Please sign in to comment.