diff --git a/cabinet.html b/cabinet.html
new file mode 100644
index 0000000..51de416
--- /dev/null
+++ b/cabinet.html
@@ -0,0 +1,104 @@
+
+
+
+
+
+Мой кабинет — Хакатон Казахтелеком
+
+
+
+
+
+
+
+
+
+
+
+
Хакатон Казахтелеком
+
+
Регистрация
+
Список участников
+
+
+
+
+
+
Мой кабинет
+
Введи email, на который регистрировался — покажем твою заявку и её статус.
+
+
+
+
+
+
+
+
+
+
diff --git a/index.html b/index.html
index 0f5142a..283e308 100644
--- a/index.html
+++ b/index.html
@@ -27,7 +27,7 @@
@@ -129,6 +129,7 @@
diff --git a/server.js b/server.js
index e83d25f..2770f08 100644
--- a/server.js
+++ b/server.js
@@ -33,6 +33,14 @@ http.createServer(async (req, res) => {
return res.end(JSON.stringify(readItems()));
}
+ if (req.method === "GET" && url === "/api/status") {
+ const q = new URL(req.url, "http://x").searchParams;
+ const email = (q.get("email") || "").trim().toLowerCase();
+ const found = readItems().find(i => i.email.toLowerCase() === email);
+ res.writeHead(200, { "Content-Type": "application/json" });
+ return res.end(JSON.stringify({ ok: true, registration: found || null }));
+ }
+
if (req.method === "POST" && url === "/api/register") {
const item = await body(req);
if (!item.fio || !item.email || !item.phone || !item.city || !item.track || !item.role || !item.experience) {