Where can i find assistance to correct a nextcloud app?

Hi there guys. New to nextycloud. Used AI to generate a simple app for nextcloud but I have a small isuue that I canno solve. Whats the correct approach to getting some help? I have the app on a git repo. Thanks!

You can post your query here.

Thanks so the problem I am facing is that the link that should open my app is not working and will just point at the currently open page. So for exmaple if I am in dashboard it will reopen dash, if in files will stay in files and so on. The following is a snippet of my info.xml file:

<navigation>
    <name>Driving License</name>
    <route>page.index</route>
    <icon>app.svg</icon>
    <order>10</order>
</navigation>

The routes.php file contains the following:

return [
    'routes' => [
	['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
        ['name' => 'page#contacts', 'url' => '/contacts', 'verb' => 'GET'],

        // API routes for drivers
        ['name' => 'driver_api#index', 'url' => '/api/drivers', 'verb' => 'GET'],
        ['name' => 'driver_api#show', 'url' => '/api/drivers/{id}', 'verb' => 'GET'],
        ['name' => 'driver_api#create', 'url' => '/api/drivers', 'verb' => 'POST'],
        ['name' => 'driver_api#update', 'url' => '/api/drivers/{id}', 'verb' => 'PUT'],
        ['name' => 'driver_api#destroy', 'url' => '/api/drivers/{id}', 'verb' => 'DELETE'],
        ['name' => 'driver_api#uploadLicenseImage', 'url' => '/api/drivers/{id}/upload', 'verb' => 'POST'],
        ['name' => 'driver_api#getLicenseImage', 'url' => '/api/drivers/{id}/image', 'verb' => 'GET'],

        // API routes for contacts
        ['name' => 'contact_api#index', 'url' => '/api/contacts', 'verb' => 'GET'],
        ['name' => 'contact_api#show', 'url' => '/api/contacts/{id}', 'verb' => 'GET'],
        ['name' => 'contact_api#create', 'url' => '/api/contacts', 'verb' => 'POST'],
        ['name' => 'contact_api#update', 'url' => '/api/contacts/{id}', 'verb' => 'PUT'],
        ['name' => 'contact_api#destroy', 'url' => '/api/contacts/{id}', 'verb' => 'DELETE'],
    ]
];

And the PageController.php has the following method:

/**
     * @NoAdminRequired
     * @NoCSRFRequired
     */
    public function index(): TemplateResponse {
        Util::addScript($this->appName, 'driving-license-main');
	Util::addStyle($this->appName, 'style');

        return new TemplateResponse($this->appName, 'index');
    }

I can’t seem to figure out where the issue is. The app is AI generated but I do have experience in coding with PHP and other languages.

If there is other code required please le me know.

Thanks for any help!

Well, this should be the complete route, aka with the app’s id.

1 Like