nc-weather/appinfo/routes.php

32 lines
1.0 KiB
PHP
Raw Normal View History

2015-07-08 21:29:55 +00:00
<?php
/**
* 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
*/
namespace OCA\Weather\AppInfo;
2015-07-08 21:29:55 +00:00
2023-07-24 19:24:05 +00:00
return [
'routes' => [
array('name' => 'city#index', 'url' => '/', 'verb' => 'GET'),
2015-07-08 21:29:55 +00:00
2023-07-24 19:24:05 +00:00
array('name' => 'city#getall', 'url' => '/city/getall', 'verb' => 'GET'),
array('name' => 'city#add', 'url' => '/city/add', 'verb' => 'POST'),
array('name' => 'city#delete', 'url' => '/city/delete', 'verb' => 'POST'),
array('name' => 'weather#get', 'url' => '/weather/get', 'verb' => 'GET'),
array('name' => 'settings#homeset', 'url' => '/settings/home/set', 'verb' => 'POST'),
array('name' => 'settings#apikeyset', 'url' => '/settings/apikey', 'verb' => 'POST'),
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
?>