diff --git a/localturk.ts b/localturk.ts index 957a7ae..f018376 100644 --- a/localturk.ts +++ b/localturk.ts @@ -234,7 +234,7 @@ const app = express(); app.use(errorhandler()); app.use(express.json({limit: '50mb'})); app.use(express.urlencoded({limit: '50mb', extended: false, parameterLimit: 50_000})); -app.use(serveStatic(path.resolve(staticDir))); +app.use(serveStatic(path.resolve(staticDir), {index: false})); app.get( '/', diff --git a/test/index-clobber/index.html b/test/index-clobber/index.html new file mode 100644 index 0000000..2c28add --- /dev/null +++ b/test/index-clobber/index.html @@ -0,0 +1 @@ +You're looking for template.html. If you see this, it's a bug! \ No newline at end of file diff --git a/test/index-clobber/outputs.csv b/test/index-clobber/outputs.csv new file mode 100644 index 0000000..e6ddac0 --- /dev/null +++ b/test/index-clobber/outputs.csv @@ -0,0 +1,2 @@ +image1,image2,line1,line2 +images/0.png,images/1.png,"Lorem ipsum dolor sit amet, consectetur adipsiscing elit.",Integer vulputate augue a sem pellentesque pharetra. \ No newline at end of file diff --git a/test/index-clobber/tasks.csv b/test/index-clobber/tasks.csv new file mode 100644 index 0000000..fee8c4b --- /dev/null +++ b/test/index-clobber/tasks.csv @@ -0,0 +1,7 @@ +image1,image2 +images/0.png,images/1.png +images/2.png,images/3.png +images/4.png,images/5.png +images/6.png,images/7.png +images/8.png,images/9.png +images/10.png,images/11.png diff --git a/test/index-clobber/template.html b/test/index-clobber/template.html new file mode 100644 index 0000000..4d0bf7c --- /dev/null +++ b/test/index-clobber/template.html @@ -0,0 +1,29 @@ +

Transcribe text

+ + + + + +

+
+ +

+ +

+
+ +