database, config, home page, start of upload endpoint
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{{.Title}}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{.Title}}</h1>
|
||||
<p>{{.Description}}</p>
|
||||
<form action="/paste" method="post">
|
||||
<label for="content">paste content</label>
|
||||
<textarea id="content" name="content" rows="10" required></textarea>
|
||||
<button type="submit">upload paste</button>
|
||||
</form>
|
||||
|
||||
<form action="/file" method="post" enctype="multipart/form-data">
|
||||
<input type="file" required name="file"/>
|
||||
<button type="submit">upload File</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user