2024-05-28 15:29:18 +02:00
|
|
|
using Foxnouns.Backend.Database.Models;
|
|
|
|
using Foxnouns.Backend.Middleware;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
|
|
namespace Foxnouns.Backend.Controllers;
|
|
|
|
|
|
|
|
[ApiController]
|
|
|
|
[Authenticate]
|
|
|
|
public class ApiControllerBase : ControllerBase
|
|
|
|
{
|
2024-06-04 17:38:59 +02:00
|
|
|
internal Token? CurrentToken => HttpContext.GetToken();
|
|
|
|
internal User? CurrentUser => HttpContext.GetUser();
|
2024-10-02 00:28:07 +02:00
|
|
|
}
|