mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 22:53:25 +00:00
feat: create dedicated settings page instead of creating many modals
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { HttpContext } from '@adonisjs/core/http';
|
||||
|
||||
export default class ShowUserSettingsController {
|
||||
public async render({ auth, inertia }: HttpContext) {
|
||||
const user = await auth.authenticate();
|
||||
return inertia.render('user_settings/show', {
|
||||
user,
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user