Rewrite access tokens, initial admin api

This commit is contained in:
Emma [it/its]@Rory&
2024-12-27 05:48:14 +01:00
parent ccf9afe57e
commit a632666203
65 changed files with 5222 additions and 73 deletions
@@ -0,0 +1,17 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Spacebar.Db.Contexts;
using Spacebar.Db.Models;
namespace Spacebar.AdminAPI.Controllers;
[ApiController]
[Route("/users")]
public class UserController(ILogger<UserController> logger, SpacebarDbContext db) : ControllerBase {
private readonly ILogger<UserController> _logger = logger;
[HttpGet(Name = "/")]
public IAsyncEnumerable<User> Get() {
return db.Users.AsAsyncEnumerable();
}
}