mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-03-28 03:29:25 +01:00
19 lines
503 B
TypeScript
19 lines
503 B
TypeScript
import { SystemService } from '#services/system_service'
|
|
import { inject } from '@adonisjs/core'
|
|
import type { HttpContext } from '@adonisjs/core/http'
|
|
|
|
@inject()
|
|
export default class HomeController {
|
|
constructor(
|
|
private systemService: SystemService,
|
|
) { }
|
|
|
|
async index({ inertia }: HttpContext) {
|
|
const services = await this.systemService.getServices();
|
|
return inertia.render('home', {
|
|
system: {
|
|
services
|
|
}
|
|
})
|
|
}
|
|
} |