WIP: all uploads

This commit is contained in:
Holly Stubbs 2025-01-27 00:10:56 +00:00
parent 5e130ed57e
commit 9acdd8ad13
Signed by: tgpholly
GPG key ID: B8583C4B7D18119E
3 changed files with 29 additions and 0 deletions

View file

@ -18,6 +18,10 @@ export default class HomeController extends Controller {
return this.view();
}
public async ImageList_Get() {
return this.view();
}
public async Upload_Post_AllowAnonymous() {
const data = await this.req.file();
if (data && data.type === "file") {

View file

@ -0,0 +1,3 @@
export default interface ImageListViewModel {
}

22
views/home/imagelist.ejs Normal file
View file

@ -0,0 +1,22 @@
<%- include("../base/header", { title: "Home", session }) %>
<div class="row">
<!-- Recent Uploads -->
<div class="col">
<div class="card">
<div class="card-header">
<div class="row">
<div class="col text-start">Recent Uploads</div>
<div class="col text-end"><a aria-label="Back to dashboard" href="/"><< Back to dashboard</a></div>
</div>
</div>
<div class="card-body">
<div class="row row-cols-1">
</div>
</div>
</div>
</div>
</div>
<%- include("../base/footer") %>