mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-03-27 19:19:25 +01:00
36 lines
1014 B
TypeScript
36 lines
1014 B
TypeScript
import { SystemService } from '#services/system_service';
|
|
import { inject } from '@adonisjs/core';
|
|
import type { HttpContext } from '@adonisjs/core/http'
|
|
|
|
@inject()
|
|
export default class SettingsController {
|
|
constructor(
|
|
private systemService: SystemService,
|
|
) { }
|
|
|
|
async system({ inertia }: HttpContext) {
|
|
// const services = await this.systemService.getServices();
|
|
return inertia.render('settings/system', {
|
|
// system: {
|
|
// services
|
|
// }
|
|
});
|
|
}
|
|
|
|
async apps({ inertia }: HttpContext) {
|
|
const services = await this.systemService.getServices({ installedOnly: false });
|
|
return inertia.render('settings/apps', {
|
|
system: {
|
|
services
|
|
}
|
|
});
|
|
}
|
|
|
|
async zim({ inertia }: HttpContext) {
|
|
return inertia.render('settings/zim/index')
|
|
}
|
|
|
|
async zimRemote({ inertia }: HttpContext) {
|
|
return inertia.render('settings/zim/remote-explorer');
|
|
}
|
|
} |