add a bunch of stuff copied from Foxchat.NET
This commit is contained in:
parent
f4c0a40259
commit
6114f384a0
21 changed files with 1216 additions and 35 deletions
13
Foxnouns.Backend/Controllers/ApiControllerBase.cs
Normal file
13
Foxnouns.Backend/Controllers/ApiControllerBase.cs
Normal 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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue