Introduce clone and download functions
This commit is contained in:
parent
8dc7a3f7d1
commit
f34d455ab8
2
main.go
2
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)
|
||||
|
|
Loading…
Reference in New Issue