add a bunch of stuff copied from Foxchat.NET

This commit is contained in:
sam 2024-05-28 15:29:18 +02:00
parent f4c0a40259
commit 6114f384a0
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
21 changed files with 1216 additions and 35 deletions

View file

@ -0,0 +1,13 @@
using Foxnouns.Backend.Database.Models;
using Foxnouns.Backend.Middleware;
using Microsoft.AspNetCore.Mvc;
namespace Foxnouns.Backend.Controllers;
[ApiController]
[Authenticate]
public class ApiControllerBase : ControllerBase
{
internal Token? Token => HttpContext.GetToken();
internal new User? User => HttpContext.GetUser();
}