Introduce clone and download functions

This commit is contained in:
Eliot Whalan 2016-06-24 08:11:30 +10:00
parent 552dffe453
commit 8da5425ada
1 changed files with 2 additions and 0 deletions

View File

@ -266,6 +266,8 @@ func main() {
router.HandleFunc("/p/{pasteId}", pasteHandler)
router.HandleFunc("/raw/{pasteId}", rawHandler)
router.HandleFunc("/p/{pasteId}/{lang}", pasteHandler)
router.HandleFunc("/{clone}/{pasteId}", cloneHandler)
router.HandleFunc("/{download}/{pasteId}", downloadHandler)
router.HandleFunc("/save", saveHandler)
router.HandleFunc("/save/{output}", saveHandler)
router.HandleFunc("/del/{pasteId}/{delKey}", delHandler)