Add Download

This commit is contained in:
sylor_huang@126.com
2020-09-29 14:27:57 +08:00
parent 1d72256098
commit f5c7792717
4 changed files with 14 additions and 4 deletions

View File

@@ -8,8 +8,10 @@ Rails.application.routes.draw do
# Serve websocket cable requests in-process
mount ActionCable.server => '/cable'
get 'attachments/entries/get_file', to: 'attachments#get_file'
get 'attachments/download/:id', to: 'attachments#show'
get 'attachments/download/:id/:filename', to: 'attachments#show'
get 'auth/qq/callback', to: 'oauth/qq#create'
get 'auth/failure', to: 'oauth/base#auth_failure'
get 'auth/cas/callback', to: 'oauth/cas#create'