();
+
+ if (!data.image) {
+ return <>All validated!>;
+ }
+
+ return (
+ <>
+
+
+ From: {data.image.submitterUserId}
+ >
+ );
+}
diff --git a/app/features/img-upload/upload-schemas.server.ts b/app/features/img-upload/upload-schemas.server.ts
new file mode 100644
index 000000000..63f60cfbd
--- /dev/null
+++ b/app/features/img-upload/upload-schemas.server.ts
@@ -0,0 +1,6 @@
+import { z } from "zod";
+import { id } from "~/utils/zod";
+
+export const validateImageSchema = z.object({
+ imageId: id,
+});
diff --git a/remix.config.js b/remix.config.js
index 09892a601..4aa2adb54 100644
--- a/remix.config.js
+++ b/remix.config.js
@@ -7,6 +7,7 @@ module.exports = {
routes: async (defineRoutes) => {
return defineRoutes((route) => {
route("/upload", "features/img-upload/routes/upload.tsx");
+ route("/upload/admin", "features/img-upload/routes/upload.admin.tsx");
route("/plans", "features/map-planner/routes/plans.tsx");
route("/analyzer", "features/build-analyzer/routes/analyzer.tsx");
route(