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)