From 7cf622bca3c69ba505886ad01b52def00fee1143 Mon Sep 17 00:00:00 2001 From: Ibrahim Hadeed Date: Sat, 11 Jun 2016 02:34:08 -0400 Subject: [PATCH] tweaks --- src/plugins/httpd.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/plugins/httpd.ts b/src/plugins/httpd.ts index 2c29bfdc4a..c948d02f13 100644 --- a/src/plugins/httpd.ts +++ b/src/plugins/httpd.ts @@ -4,10 +4,11 @@ import {Observable} from 'rxjs/Observable'; * @name Httpd * @description * Embedded httpd for Cordova apps. Light weight HTTP server. + * @usage */ @Plugin({ plugin: 'https://github.com/floatinghotpot/cordova-httpd.git', - pluginRef: 'CorHttpd', + pluginRef: 'cordova.plugins.CorHttpd', repo: 'https://github.com/floatinghotpot/cordova-httpd', platforms: ['iOS', 'Android'] }) @@ -43,15 +44,18 @@ export class Httpd { */ export interface HttpdOptions { /** - * The public root directory for your web server. + * The public root directory for your web server. This path is relative to your app's www directory. + * Default is current directory. */ - www_root: string; + www_root?: string; /** * The port number to use. + * Default is 8888 */ - port: number; + port?: number; /** - * Setting this option to false will allow remote access to your web server (over any IP) + * Setting this option to false will allow remote access to your web server (over any IP). + * Default is false. */ - localhost_only: boolean; + localhost_only?: boolean; } \ No newline at end of file