WIP: all uploads
This commit is contained in:
parent
5e130ed57e
commit
9acdd8ad13
3 changed files with 29 additions and 0 deletions
|
@ -18,6 +18,10 @@ export default class HomeController extends Controller {
|
||||||
return this.view();
|
return this.view();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async ImageList_Get() {
|
||||||
|
return this.view();
|
||||||
|
}
|
||||||
|
|
||||||
public async Upload_Post_AllowAnonymous() {
|
public async Upload_Post_AllowAnonymous() {
|
||||||
const data = await this.req.file();
|
const data = await this.req.file();
|
||||||
if (data && data.type === "file") {
|
if (data && data.type === "file") {
|
||||||
|
|
3
models/home/ImageListViewModel.ts
Normal file
3
models/home/ImageListViewModel.ts
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
export default interface ImageListViewModel {
|
||||||
|
|
||||||
|
}
|
22
views/home/imagelist.ejs
Normal file
22
views/home/imagelist.ejs
Normal 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") %>
|
Loading…
Add table
Reference in a new issue