2015-07-08 21:29:55 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2015-07-08 21:40:17 +00:00
|
|
|
* ownCloud - Weather
|
2015-07-08 21:29:55 +00:00
|
|
|
*
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
|
|
* later. See the COPYING file.
|
|
|
|
*
|
|
|
|
* @author Loic Blot <loic.blot@unix-experience.fr>
|
|
|
|
* @copyright Loic Blot 2015
|
|
|
|
*/
|
|
|
|
|
2015-07-08 21:40:17 +00:00
|
|
|
namespace OCA\Weather\AppInfo;
|
2015-07-08 21:29:55 +00:00
|
|
|
|
|
|
|
$application = new Application();
|
|
|
|
|
|
|
|
$application->registerRoutes($this, array('routes' => array(
|
|
|
|
array('name' => 'city#index', 'url' => '/', 'verb' => 'GET'),
|
|
|
|
|
|
|
|
array('name' => 'city#getall', 'url' => '/city/getall', 'verb' => 'GET'),
|
2015-07-08 22:05:57 +00:00
|
|
|
array('name' => 'city#add', 'url' => '/city/add', 'verb' => 'POST'),
|
2015-07-08 21:29:55 +00:00
|
|
|
array('name' => 'city#delete', 'url' => '/city/delete', 'verb' => 'POST'),
|
2015-07-08 22:05:57 +00:00
|
|
|
|
|
|
|
array('name' => 'weather#get', 'url' => '/weather/get', 'verb' => 'GET'),
|
2015-07-18 13:58:51 +00:00
|
|
|
|
|
|
|
array('name' => 'settings#homeset', 'url' => '/settings/home/set', 'verb' => 'POST'),
|
2017-07-03 20:13:17 +00:00
|
|
|
array('name' => 'settings#apikeyset', 'url' => '/settings/apikey', 'verb' => 'POST'),
|
2015-10-25 10:30:05 +00:00
|
|
|
array('name' => 'settings#metricset', 'url' => '/settings/metric/set','verb' => 'POST'),
|
|
|
|
array('name' => 'settings#metricget', 'url' => '/settings/metric/get','verb' => 'GET'),
|
2015-07-08 21:29:55 +00:00
|
|
|
)));
|
|
|
|
?>
|