summaryrefslogtreecommitdiff
path: root/UrlGenerator.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'UrlGenerator.class.php')
-rw-r--r--UrlGenerator.class.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/UrlGenerator.class.php b/UrlGenerator.class.php
index 03c5b14..24aa75e 100644
--- a/UrlGenerator.class.php
+++ b/UrlGenerator.class.php
@@ -6,16 +6,24 @@ class UrlGenerator {
$this->baseurl = $baseurl;
}
+ function queues() {
+ return $this->baseurl . "/queue";
+ }
+
function queue($queue) {
return $this->baseurl . "/queue/" . $queue;
}
+ function queue_items($queue) {
+ return $this->baseurl . "/queue/" . $queue . "/items";
+ }
+
function enqueue($queue) {
return $this->baseurl . "/enqueue/" . $queue;
}
function item($queue, $item) {
- return $this->baseurl . "/item/" . $queue . "/" . $id;
+ return $this->baseurl . "/queue/" . $queue . "/items/" . $item;
}
function item_enclosure($queue, $id) {