From 9ad9d9df28c4c0fbfa012f637ed6b8a7507772b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Mon, 18 Jan 2021 15:58:51 +0800 Subject: [PATCH] fix bug for the problem of not matching filename with dot --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index e45f4d0..aec69b9 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -39,7 +39,7 @@ Rails.application.routes.draw do get '/xhr/announcements/announcement.json', to: 'bulletins#get_bulletins' get '/xhr/panel/announcement/widget/sync_data' => 'announcements#show_widget' get '/xhr/announcements/:slug_title-:uid/comment', to: 'announcements#comment' - get '/xhr/announcements/file/:id/:f_name' => 'announcements#get_file' + get '/xhr/announcements/file/:id/*f_name' => 'announcements#get_file' end end