summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2023-12-25 00:19:23 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2023-12-25 00:19:23 +0530
commite41148638c2783fae9e7756c04781d59d83e3444 (patch)
tree2eef1284ef3c16ab36d6410c1bc9644b771c9ee7
parentbb0cb6e2695711e3c6bb8df221e2bd95e5f27c85 (diff)
test and .gitignore: Adding localhost for devtesting and updating .gitignore for binary
-rw-r--r--.gitignore2
-rw-r--r--test/upload/index.html3
-rw-r--r--test/verify/index.html3
3 files changed, 6 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 98a19f7..c8e5f92 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,6 @@
# Dependency directories
.env
vendor/
+# db and compiled binary
hashstore.db
+main
diff --git a/test/upload/index.html b/test/upload/index.html
index e4ba221..0b3af15 100644
--- a/test/upload/index.html
+++ b/test/upload/index.html
@@ -7,7 +7,8 @@
</head>
<body>
<h2>Test File Upload to Go API</h2>
- <form action="https://draconyan.xyz:3000/upload" method="post" enctype="multipart/form-data">
+ <form action="http://localhost:3000/upload" method="post" enctype="multipart/form-data">
+ <!-- <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>
diff --git a/test/verify/index.html b/test/verify/index.html
index 4af333a..da8baf4 100644
--- a/test/verify/index.html
+++ b/test/verify/index.html
@@ -7,7 +7,8 @@
</head>
<body>
<h1>File Verification Test</h1>
- <form action="https://draconyan.xyz:3000/verify" method="post" enctype="multipart/form-data">
+ <form action="http://localhost:3000/verify" method="post" enctype="multipart/form-data">
+ <!-- <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>