Initial commit

This commit is contained in:
Andrea Rigoni
2023-12-17 13:23:20 +01:00
parent 65e296bbed
commit 2a589e4b28
52 changed files with 2306 additions and 3 deletions

27
appinfo/info.xml Normal file
View File

@@ -0,0 +1,27 @@
<?xml version="1.0"?>
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
<!--
SPDX-FileCopyrightText: Andrea Rigoni Garola <andrea.rgn@gmail.com>
SPDX-License-Identifier: CC0-1.0
-->
<id>photoreduce</id>
<name>Photo Reduce</name>
<summary>Automatically reduce size of photos and organize folders</summary>
<description><![CDATA[Automatically reduce size of photos and organize folders]]></description>
<version>0.0.1</version>
<licence>agpl</licence>
<author mail="andrea.rgn@gmail.com" >Andrea Rigoni Garola</author>
<namespace>PhotoReduce</namespace>
<category>multimedia</category>
<bugs>https://gitea.mildstone.org/YFinGames/ncc_photo_reduce</bugs>
<dependencies>
<nextcloud min-version="27" max-version="27"/>
</dependencies>
<navigations>
<navigation>
<name>Photo Reduce</name>
<route>photoreduce.page.index</route>
</navigation>
</navigations>
</info>

25
appinfo/routes.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: Andrea Rigoni Garola <andrea.rgn@gmail.com>
// SPDX-License-Identifier: AGPL-3.0-or-later
/**
* 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\PhotoReduce\Controller\PageController->index()
*
* The controller class has to be registered in the application.php file since
* it's instantiated in there
*/
return [
'resources' => [
'note' => ['url' => '/notes'],
'note_api' => ['url' => '/api/0.1/notes']
],
'routes' => [
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
['name' => 'note_api#preflighted_cors', 'url' => '/api/0.1/{path}',
'verb' => 'OPTIONS', 'requirements' => ['path' => '.+']]
]
];