From 8da5425adab9d64c5689d042691b040e32bac8ab Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Fri, 24 Jun 2016 08:11:30 +1000 Subject: [PATCH] Introduce clone and download functions --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index a9f1101..e51d8a0 100644 --- a/main.go +++ b/main.go @@ -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)