finish off routing for #2226

This commit is contained in:
Jonathan Lipps
2014-04-04 11:58:46 -07:00
parent c2cc280a23
commit 5ceb9bbb1b
2 changed files with 7 additions and 3 deletions
+4 -3
View File
@@ -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);
};
+3
View File
@@ -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);