feat: bring back legal pages

This commit is contained in:
Sonny
2024-05-20 01:07:11 +02:00
committed by Sonny
parent e6803c174c
commit 3ff7619e94
16 changed files with 190 additions and 46 deletions

View File

@@ -3,10 +3,6 @@ import { updateUserThemeValidator } from '#validators/user';
import type { HttpContext } from '@adonisjs/core/http';
export default class AppsController {
index({ inertia }: HttpContext) {
return inertia.render('home');
}
async updateUserTheme({ request, session, response }: HttpContext) {
const { preferDarkTheme } = await request.validateUsing(
updateUserThemeValidator