summaryrefslogtreecommitdiffstats
path: root/api/WhatApi/Endpoints
diff options
context:
space:
mode:
authorivar <i@oiee.no>2025-10-26 22:57:28 +0100
committerivar <i@oiee.no>2025-10-26 22:57:28 +0100
commit842502e82c4ddfea05a5f77c361aaa27f75afc42 (patch)
tree70fe96cd88600224257b80569015008626e3d317 /api/WhatApi/Endpoints
parent5c59225ee10949cc58fccce4d968d1ede58be9b6 (diff)
downloadwhat-842502e82c4ddfea05a5f77c361aaa27f75afc42.tar.xz
what-842502e82c4ddfea05a5f77c361aaa27f75afc42.zip
Refactor db schema and add audits
Diffstat (limited to 'api/WhatApi/Endpoints')
-rw-r--r--api/WhatApi/Endpoints/BaseEndpoint.cs1
-rw-r--r--api/WhatApi/Endpoints/DownloadContentEndpoint.cs2
-rw-r--r--api/WhatApi/Endpoints/GetPlacesEndpoint.cs4
-rw-r--r--api/WhatApi/Endpoints/UploadContentEndpoint.cs5
4 files changed, 0 insertions, 12 deletions
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()
};