Commit Graph

20 Commits

Author SHA1 Message Date
Daan Sprenkels
c82a71f7d0 Revert "Remove file storage possibility for now (awaits #12)"
This reverts commit 801ac8adbb.
2019-11-10 19:08:05 +01:00
Daan Sprenkels
66eb0bf97a Add support for file uploads 2019-11-10 19:03:57 +01:00
d0b8a9ab9e Always show the shortened URL; optionally print the deleteToken URL 2019-11-09 22:44:02 +01:00
01580bfe2a Return complete URL after shortening, fixes #13 2019-11-09 22:33:16 +01:00
e7b71eca69 index templates: assume we run on https. README: example nginx config
Fixes #10
2019-11-09 22:29:01 +01:00
801ac8adbb Remove file storage possibility for now (awaits #12) 2019-11-09 21:46:40 +01:00
b738116f8a Flags for listen and metrics address; fix in newRedirectPasteSuccess.txt.tmpl
Fixes #9
2019-11-09 21:43:58 +01:00
Daan Sprenkels
e193183f86 Allow internal server error using panic() 2019-10-15 23:19:45 +02:00
Daan Sprenkels
0ecdaafe2f refactor: Put paste model in separate file 2019-09-22 14:03:54 +02:00
Daan Sprenkels
f36ed4a4c7 Only provide deleteToken if requested by user 2019-09-22 13:40:33 +02:00
Daan Sprenkels
f45c132b41 Make deleteTokens strings 2019-09-21 21:03:31 +02:00
Daan Sprenkels
1c926a4864 Implement deleting of pastes 2019-09-21 13:18:15 +02:00
Daan Sprenkels
60fd92c956 Put existing pages in templates 2019-09-15 22:54:07 +02:00
Daan Sprenkels
372d7c0487 Extract error rendering 2019-09-15 22:00:59 +02:00
Daan Sprenkels
ddd674e88a Create a rendering stub 2019-09-15 19:51:54 +02:00
Daan Sprenkels
544c093c35 Use a more standardized project layout
In #2, mrngm made the point that we should move to a more
standardized project structure. This commit does exactly that.
The new project structure is based on the repository listed at
<https://github.com/golang-standards/project-layout>.

Fixes #2.
2019-09-10 17:52:45 +02:00
Daan Sprenkels
8803281285 Put index in template 2019-09-06 00:17:50 +02:00
Daan Sprenkels
675245722f Revert "Format errors with HTML"
This reverts commit 80092dea5b.

After enabling both HTML and plain-text templating, I found that
this introduces a lot more complexity in the code than was desirable
for a project in this stage. The result looked fine, wrapping plain
text in <pre> tags. However, it was neccessary to keep duplicate
template files, for HTML and text. This was cumbersome, added a lot
of bloat, etc.

This feature is postponed to when there is more product.
2019-09-06 00:15:35 +02:00
Daan Sprenkels
80092dea5b Format errors with HTML 2019-09-05 23:07:54 +02:00
Daan Sprenkels
061bb23625 Initial commit 2019-08-25 21:33:56 +02:00