From 7a19f86efe92b1c5882db815e3f26a07ed18238d Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Wed, 22 Jun 2016 21:41:36 +1000 Subject: [PATCH] Try new url layout --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index b6c93be..c7fb05a 100644 --- a/main.go +++ b/main.go @@ -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)