fix: 🐛 update compose
This commit is contained in:
parent
979cdc67bb
commit
ce1dc19ff9
@ -11,7 +11,8 @@
|
|||||||
],
|
],
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"OCA\\AppTemplate\\": "lib/"
|
"OCA\\AppTemplate\\": "lib/",
|
||||||
|
"OCP\\": "vendor/nextcloud/ocp/OCP/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace OCA\AppTemplate\Controller;
|
|
||||||
|
|
||||||
use OCP\AppFramework\Http;
|
|
||||||
use OCP\AppFramework\Http\Attribute\ApiRoute;
|
|
||||||
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
|
|
||||||
use OCP\AppFramework\Http\DataResponse;
|
|
||||||
use OCP\AppFramework\OCSController;
|
|
||||||
|
|
||||||
class ApiController extends OCSController
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* An example API endpoint.
|
|
||||||
*
|
|
||||||
* @return DataResponse<Http::STATUS_OK, array{message: string}, array{}>
|
|
||||||
*
|
|
||||||
* 200: Data returned
|
|
||||||
*/
|
|
||||||
#[NoAdminRequired]
|
|
||||||
#[ApiRoute(verb: 'GET', url: '/api')]
|
|
||||||
public function index(): DataResponse {
|
|
||||||
return new DataResponse(
|
|
||||||
['message' => 'Hello world!']
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,6 +1,6 @@
|
|||||||
import '@formatjs/intl-segmenter/polyfill'
|
import '@formatjs/intl-segmenter/polyfill'
|
||||||
import { createApp } from 'vue'
|
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
|
import { createApp } from 'vue'
|
||||||
|
|
||||||
const View = createApp(App)
|
const View = createApp(App)
|
||||||
View.mount('#app_template')
|
View.mount('#app_template')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user