mirror of
https://github.com/kevin-DL/InertiaJS-Vue3-Tailwind-CSS-AdonisJS.git
synced 2026-01-12 11:15:11 +00:00
first commit
This commit is contained in:
16
app/Controllers/Http/WelcomesController.ts
Normal file
16
app/Controllers/Http/WelcomesController.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
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 });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user