From 842502e82c4ddfea05a5f77c361aaa27f75afc42 Mon Sep 17 00:00:00 2001 From: ivar Date: Sun, 26 Oct 2025 22:57:28 +0100 Subject: Refactor db schema and add audits --- api/WhatApi/Endpoints/BaseEndpoint.cs | 1 - api/WhatApi/Endpoints/DownloadContentEndpoint.cs | 2 -- api/WhatApi/Endpoints/GetPlacesEndpoint.cs | 4 ---- api/WhatApi/Endpoints/UploadContentEndpoint.cs | 5 ----- 4 files changed, 12 deletions(-) (limited to 'api/WhatApi/Endpoints') diff --git a/api/WhatApi/Endpoints/BaseEndpoint.cs b/api/WhatApi/Endpoints/BaseEndpoint.cs index 4d8f9ad..1fdf14f 100644 --- a/api/WhatApi/Endpoints/BaseEndpoint.cs +++ b/api/WhatApi/Endpoints/BaseEndpoint.cs @@ -1,5 +1,4 @@ using System.Net; -using Microsoft.AspNetCore.Mvc; namespace WhatApi.Endpoints; diff --git a/api/WhatApi/Endpoints/DownloadContentEndpoint.cs b/api/WhatApi/Endpoints/DownloadContentEndpoint.cs index dbe6bff..34e51e8 100644 --- a/api/WhatApi/Endpoints/DownloadContentEndpoint.cs +++ b/api/WhatApi/Endpoints/DownloadContentEndpoint.cs @@ -1,5 +1,3 @@ -using Microsoft.AspNetCore.Mvc; - namespace WhatApi.Endpoints; public class DownloadContentEndpoint : BaseEndpoint diff --git a/api/WhatApi/Endpoints/GetPlacesEndpoint.cs b/api/WhatApi/Endpoints/GetPlacesEndpoint.cs index a3fc7e3..8dbdff6 100644 --- a/api/WhatApi/Endpoints/GetPlacesEndpoint.cs +++ b/api/WhatApi/Endpoints/GetPlacesEndpoint.cs @@ -1,8 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.EntityFrameworkCore; -using NetTopologySuite; using NetTopologySuite.Features; -using NetTopologySuite.Geometries; using WhatApi.Tables; namespace WhatApi.Endpoints; diff --git a/api/WhatApi/Endpoints/UploadContentEndpoint.cs b/api/WhatApi/Endpoints/UploadContentEndpoint.cs index 82fb71b..b114310 100644 --- a/api/WhatApi/Endpoints/UploadContentEndpoint.cs +++ b/api/WhatApi/Endpoints/UploadContentEndpoint.cs @@ -1,7 +1,3 @@ -using Microsoft.AspNetCore.Http.Extensions; -using Microsoft.AspNetCore.Mvc; -using NetTopologySuite; -using NetTopologySuite.Geometries; namespace WhatApi.Endpoints; @@ -32,7 +28,6 @@ public class UploadContentEndpoint(Database db) : BaseEndpoint var content = new Tables.Content() { Id = contentId, Mime = request.File.ContentType, - Created = DateTime.UtcNow, BlobId = blobId, Ip = GetIp() }; -- cgit v1.3