mirror of
https://github.com/kevin-DL/InertiaJS-Vue3-Tailwind-CSS-AdonisJS.git
synced 2026-01-11 10:54:25 +00:00
16 lines
461 B
TypeScript
16 lines
461 B
TypeScript
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
|
|
|
|
export default class WelcomesController {
|
|
|
|
public async index({ inertia }: HttpContextContract) {
|
|
const Text = 'InertiaJS + Vue3 + Tailwind CSS + AdonisJS';
|
|
|
|
return inertia.render('welcome', { Text });
|
|
}
|
|
|
|
public async about({ inertia }: HttpContextContract) {
|
|
const Text = 'This is About Page';
|
|
|
|
return inertia.render('About/About', { Text });
|
|
}
|
|
} |