diff options
Diffstat (limited to 'views/directory.ejs')
-rw-r--r-- | views/directory.ejs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/views/directory.ejs b/views/directory.ejs new file mode 100644 index 0000000..7317794 --- /dev/null +++ b/views/directory.ejs | |||
@@ -0,0 +1,17 @@ | |||
1 | <html> | ||
2 | <head> | ||
3 | <title> <%= dirPath %> </title> | ||
4 | </head> | ||
5 | |||
6 | <body> | ||
7 | |||
8 | Directory <%= dirPath %>: | ||
9 | |||
10 | <ul> | ||
11 | <% entries.forEach(function (entry) { %> | ||
12 | <li><a href="/api/files/<%= dirPath %>/<%= entry %>"><%= entry %></a></li> | ||
13 | <% }); %> | ||
14 | </ul> | ||
15 | |||
16 | </body> | ||
17 | </html> \ No newline at end of file | ||