#1 : Test de Keycloak.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
namespace Webzine.WebApplication.Areas.Administration.Controllers;
|
||||
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
using Webzine.Business.Contracts;
|
||||
@@ -32,6 +33,7 @@ public class DashboardController : Controller
|
||||
/// Affiche le tableau de bord de l'administration.
|
||||
/// </summary>
|
||||
/// <returns>La vue Index du tableau de bord.</returns>
|
||||
[Authorize(Roles = "ADMIN")]
|
||||
public IActionResult Index()
|
||||
{
|
||||
DashboardDTO data = this.dashboardService.GetDashboardData();
|
||||
|
||||
Reference in New Issue
Block a user