From b0fd53bc06d1f3c93b9a282aa058024bad79d01d Mon Sep 17 00:00:00 2001 From: Tim Mecklem Date: Wed, 30 May 2018 13:47:50 -0400 Subject: [PATCH] Add png suffix to route to allow viewing in browser --- apps/explorer_web/lib/explorer_web/router.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/explorer_web/lib/explorer_web/router.ex b/apps/explorer_web/lib/explorer_web/router.ex index efe52f0ba7..9f528c9822 100644 --- a/apps/explorer_web/lib/explorer_web/router.ex +++ b/apps/explorer_web/lib/explorer_web/router.ex @@ -81,7 +81,7 @@ defmodule ExplorerWeb.Router do as: :contract ) - resources("/qrcode", AddressQRCodeController, only: [:index], as: :qr_code) + resources("/qrcode.png", AddressQRCodeController, only: [:index], as: :qr_code) end get("/search", ChainController, :search)