summaryrefslogtreecommitdiffstats
path: root/extensions/example/lib
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/example/lib')
-rw-r--r--extensions/example/lib/WSExample.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/extensions/example/lib/WSExample.pm b/extensions/example/lib/WSExample.pm
new file mode 100644
index 000000000..05975b874
--- /dev/null
+++ b/extensions/example/lib/WSExample.pm
@@ -0,0 +1,10 @@
+package extensions::example::lib::WSExample;
+use strict;
+use warnings;
+
+use base qw(Bugzilla::WebService);
+
+# This can be called as Example.hello() from XML-RPC.
+sub hello { return 'Hello!'; }
+
+1;