Eliot Whalan
a1311ce1b5
More updates to readme
2016-07-14 12:04:03 +10:00
Eliot Whalan
1157ca415a
Rename LICENSE file
2016-07-14 11:57:22 +10:00
Eliot Whalan
17c41cdaf4
Rename LICENSE file
2016-07-14 11:57:07 +10:00
Eliot Whalan
6093913ec6
Update readme
2016-07-14 11:53:57 +10:00
Eliot Whalan
04b7fcea81
Fix cli uploads
2016-07-12 18:33:19 +10:00
Eliot Whalan
3cddbf7c90
Make api more restful
2016-07-12 10:50:44 +10:00
Eliot Whalan
c8ecc0c312
Reorder forever to be at the bottom
2016-07-12 07:15:36 +10:00
Eliot Whalan
7a020e9c9a
Use log package
2016-07-10 12:24:09 +10:00
Eliot Whalan
312e7452a0
Force default to be text/plain
2016-07-09 14:44:48 +10:00
Eliot Whalan
0f510852f8
Force raw to be text/plain
2016-07-09 14:40:48 +10:00
Eliot Whalan
9e71bc7039
Force raw to be plain/text
2016-07-09 14:26:01 +10:00
Eliot Whalan
951361c25e
More comments, rename package to main and roothandler
2016-07-04 14:17:17 +10:00
Eliot Whalan
b2839aacfa
Document more code
2016-07-04 12:52:23 +10:00
Eliot Whalan
8a4629c4b4
Update readme
2016-07-04 12:33:43 +10:00
Eliot Whalan
01e0959200
Fix up golint errors
2016-07-04 12:31:01 +10:00
Eliot Whalan
601a5d6ee1
Fix up golint errors
2016-07-04 12:29:59 +10:00
Eliot Whalan
741511897c
Reduce code for handling titles
2016-07-04 10:38:12 +10:00
Eliot Whalan
2d4d7034b0
Start writing documentation
2016-07-04 10:19:57 +10:00
Eliot Whalan
67e267d149
Rename package to pastebin
2016-07-04 10:06:47 +10:00
Eliot Whalan
321f189852
Rename main.go to pastebin.go
2016-07-04 10:06:24 +10:00
Eliot Whalan
27aff618fd
Reduce code for lang
2016-07-04 10:04:37 +10:00
Eliot Whalan
c7101dc5cb
Change db.close to defer db.close
2016-07-04 10:03:22 +10:00
Eliot Whalan
45845f7783
Save function return response struct
2016-07-04 10:02:06 +10:00
Eliot Whalan
b2aaef9406
Create paste duratation function
2016-07-04 09:59:31 +10:00
Eliot Whalan
e2192ef079
Merge pull request #1 from felixonmars/patch-1
...
Add missing name for paste body field on clone page
2016-06-30 07:47:37 +10:00
Felix Yan
671412631f
Add missing name for paste body field on clone page
...
The `name="p"` part is present in index but not the clone page. Without the change I am getting "Empty paste" when submitting any paste from the clone page.
2016-06-29 11:12:06 -05:00
Eliot Whalan
9825058fef
Revert "Fix up css for syntax page"
...
This reverts commit 5afb1564ce
.
2016-06-28 22:54:41 +10:00
Eliot Whalan
14e7df342d
Revert "Try again"
...
This reverts commit 7658c76460
.
2016-06-28 22:54:34 +10:00
Eliot Whalan
7658c76460
Try again
2016-06-28 22:53:35 +10:00
Eliot Whalan
5afb1564ce
Fix up css for syntax page
2016-06-28 22:51:33 +10:00
Eliot Whalan
975148d4c7
Fixup missing variable name
2016-06-28 10:56:44 +10:00
Eliot Whalan
55d3c2f3ab
Improve variable names
2016-06-28 08:10:20 +10:00
Eliot Whalan
ccfefb8043
Make id and delkey required for sql query
2016-06-28 08:07:55 +10:00
Eliot Whalan
b0d76a12b7
Remove setup function call
2016-06-27 08:11:24 +10:00
Eliot Whalan
c99d8aaf80
Revert "Only open db once"
...
This reverts commit c698f36a86
.
2016-06-27 08:09:34 +10:00
Eliot Whalan
86bc7cbca1
Fix incorrect db
2016-06-27 07:51:00 +10:00
Eliot Whalan
51995a8fd5
Call setup function in main
2016-06-27 07:47:42 +10:00
Eliot Whalan
c698f36a86
Only open db once
2016-06-27 07:46:58 +10:00
Eliot Whalan
62453be692
Let mysql to more searching
2016-06-26 21:16:14 +10:00
Eliot Whalan
3c4a9e0032
Let sql do the searching
2016-06-26 21:14:12 +10:00
Eliot Whalan
f562758f35
Fix up padding
2016-06-26 18:18:14 +10:00
Eliot Whalan
efddd09b10
Remove guess language option
2016-06-26 06:51:34 +10:00
Eliot Whalan
70701454a0
Fix lack of title on syntax page
2016-06-26 06:45:54 +10:00
Eliot Whalan
f7ce7d7abf
Try 20 years for 'forever expiry'
2016-06-25 09:02:31 +10:00
Eliot Whalan
cfc5dcf3eb
Fix up expiry math
2016-06-25 08:56:25 +10:00
Eliot Whalan
4740a10297
Add ghetto expiry fix
2016-06-25 08:53:34 +10:00
Eliot Whalan
576b83492a
Fix up expiry
2016-06-25 08:49:34 +10:00
Eliot Whalan
d327895d81
Add some temps prints for debugging
2016-06-25 08:40:51 +10:00
Eliot Whalan
a3f316962d
Remove unneed expiry query from save function
2016-06-25 08:38:58 +10:00
Eliot Whalan
252c2a7fbe
Add expiry checking
2016-06-25 08:33:56 +10:00