Add /api/devices CRUD (list, get, rename, revoke) with owner scoping

This commit is contained in:
2026-06-11 19:00:42 +00:00
parent b5be4c6914
commit e5ae228738
3 changed files with 162 additions and 0 deletions
+2
View File
@@ -1,5 +1,6 @@
using backend.Auth;
using backend.Data;
using backend.Devices;
using backend.Pairing;
using Microsoft.EntityFrameworkCore;
@@ -35,6 +36,7 @@ app.UseAuthorization();
app.MapAuthEndpoints();
app.MapPairingEndpoints();
app.MapDevicesEndpoints();
app.MapGet("/health", () => Results.Ok(new { ok = true }));