feat: added file upload + dir creation

This commit is contained in:
Smigz 2025-05-01 20:59:01 -04:00
parent b1c295d2ac
commit eedab606f8
25 changed files with 965 additions and 103 deletions

View file

@ -1,13 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<%- include('partials/header') %>
<body>
<% if(currentUser) { %>
<p> Hello <%= currentUser.username %> </p>
<a href="/auth/logout">sign out</a>
<%- include('partials/fileUpload') %>
<% } else { %>
<form action="/auth/login" method="post">
<label for="username">Username</label>
<input type="text" name="username">
@ -16,6 +13,6 @@
<button type="submit">Submit</button>
<a href="/auth/register">Click here to register</a>
</form>
</body>
</html>
<% } %>
<%- include('partials/footer') %>