Try new url layout

This commit is contained in:
Eliot Whalan 2016-06-22 21:41:36 +10:00
parent be778751c1
commit 7a19f86efe
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ func main() {
router := mux.NewRouter().StrictSlash(true)
router.HandleFunc("/", rootHandler)
router.HandleFunc("/p/{pasteId}", pasteHandler)
router.HandleFunc("/p/{pasteId}/{lang}", langHandler)
router.HandleFunc("/p/{pasteId}.{lang}", langHandler)
router.HandleFunc("/save", saveHandler)
router.HandleFunc("/save/{output}", saveHandler)
router.HandleFunc("/del/{pasteId}/{delKey}", delHandler)