Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/survey_client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-12-17 16:28:57 +0300
committerJoas Schilling <nickvergessen@owncloud.com>2015-12-17 16:28:57 +0300
commit3c9e289304f7e867d765a6756de191d90746fbea (patch)
tree5df44932d97b41051f61624bd4dd0edc76dc6be9 /appinfo
parentc630a029fd7c9d71f9a13cd6f6f38b1b4698eedd (diff)
Handle background job generation
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/application.php3
-rw-r--r--appinfo/routes.php16
2 files changed, 18 insertions, 1 deletions
diff --git a/appinfo/application.php b/appinfo/application.php
index 44d17fe..06a466c 100644
--- a/appinfo/application.php
+++ b/appinfo/application.php
@@ -40,7 +40,8 @@ class Application extends App {
$server->getRequest(),
$c->query('OCA\PopularityContestClient\Collector'),
$server->getHTTPClientService(),
- $server->getConfig()
+ $server->getConfig(),
+ $server->getJobList()
);
});
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 498e6d9..92f77d6 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -28,3 +28,19 @@ $application = new \OCA\PopularityContestClient\AppInfo\Application();
'popularitycontestclient',
\OCP\API::ADMIN_AUTH
);
+
+\OCP\API::register(
+ 'post',
+ '/apps/popularitycontestclient/api/v1/monthly',
+ [$application->getContainer()->query('EndpointController'), 'enableMonthly'],
+ 'popularitycontestclient',
+ \OCP\API::ADMIN_AUTH
+);
+
+\OCP\API::register(
+ 'delete',
+ '/apps/popularitycontestclient/api/v1/monthly',
+ [$application->getContainer()->query('EndpointController'), 'disableMonthly'],
+ 'popularitycontestclient',
+ \OCP\API::ADMIN_AUTH
+);