summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2023-11-28 21:54:20 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2023-11-28 21:54:20 +0530
commitf3bf6c4d9e0d603adf8178a148d1ee7365dc0220 (patch)
tree456d7a54c32742e16cde33d857819cb4a1660b3e
parent9b0dc8e75b6e361e27414cde76d9a8958fe3dc1e (diff)
test - Adding /upload /verify endpoint test file
-rw-r--r--test/upload/index.html16
-rw-r--r--test/verify/index.html18
2 files changed, 34 insertions, 0 deletions
diff --git a/test/upload/index.html b/test/upload/index.html
new file mode 100644
index 0000000..e4ba221
--- /dev/null
+++ b/test/upload/index.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>File Upload Test</title>
+</head>
+<body>
+ <h2>Test File Upload to Go API</h2>
+ <form action="https://draconyan.xyz:3000/upload" method="post" enctype="multipart/form-data">
+ <label for="FileInput">Choose file to upload:</label>
+ <input type="file" id="FileInput" name="FileInput" required><br><br>
+ <button type="submit">Upload File</button>
+ </form>
+</body>
+</html>
diff --git a/test/verify/index.html b/test/verify/index.html
new file mode 100644
index 0000000..4af333a
--- /dev/null
+++ b/test/verify/index.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>File Verification Test</title>
+</head>
+<body>
+ <h1>File Verification Test</h1>
+ <form action="https://draconyan.xyz:3000/verify" method="post" enctype="multipart/form-data">
+ <label for="idInput">Enter ID:</label>
+ <input type="text" id="idInput" name="idInput" required><br><br>
+ <label for="FileInput">Choose file to verify:</label>
+ <input type="file" id="FileInput" name="FileInput" required><br><br>
+ <button type="submit">Verify File</button>
+ </form>
+</body>
+</html>