mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-06-27 20:45:35 -04:00
feat: added file upload + dir creation
This commit is contained in:
parent
b1c295d2ac
commit
eedab606f8
25 changed files with 965 additions and 103 deletions
|
@ -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') %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue