Initial commit

This commit is contained in:
2026-07-05 21:52:31 +02:00
commit 93259f5b6d
35 changed files with 2389 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
<id>moneyplanner</id>
<name>Money Planner</name>
<summary>Persönliche Ausgaben planen</summary>
<description><![CDATA[Mit dem MoneyPlanner lassen sich Ausgaben und Einnahmen auf mehreren Konten planen.]]></description>
<version>0.0.2</version>
<licence>agpl</licence>
<author mail="nilsotterpohl@npfs.de" >Nils Otterpohl</author>
<namespace>MoneyPlanner</namespace>
<category>organization</category>
<bugs>https://npfs.de/issues/</bugs>
<dependencies>
<nextcloud min-version="8" />
</dependencies>
<navigations>
<navigation>
<name>Money Planner</name>
<route>moneyplanner.page.index</route>
</navigation>
</navigations>
</info>
+22
View File
@@ -0,0 +1,22 @@
<?php
/**
* Create your routes in here. The name is the lowercase name of the controller
* without the controller part, the stuff after the hash is the method.
* e.g. page#index -> OCA\MoneyPlanner\Controller\PageController->index()
*
* The controller class has to be registered in the application.php file since
* it's instantiated in there
*/
return [
'resources' => [
'account' => ['url' => '/accounts'],
'account_api' => ['url' => '/api/0.1/accounts'],
'transaction' => ['url' => '/transactions'],
'transaction_api' => ['url' => '/api/0.1/transactions']
],
'routes' => [
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
['name' => 'account_api#preflighted_cors', 'url' => '/api/0.1/{path}', 'verb' => 'OPTIONS', 'requirements' => ['path' => '.+']],
['name' => 'transaction_api#preflighted_cors', 'url' => '/api/0.1/{path}', 'verb' => 'OPTIONS', 'requirements' => ['path' => '.+']]
]
];