added hmac auth to report route

Co-authored-by: timvisee <tim@visee.me>
This commit is contained in:
Danny Coates 2020-07-25 15:36:09 -07:00 committed by timvisee
parent bc0ccc8e5d
commit f64e772145
No known key found for this signature in database
GPG key ID: B8DB720BC383E172
3 changed files with 10 additions and 3 deletions

View file

@ -9,7 +9,7 @@ import contentDisposition from 'content-disposition';
let noSave = false;
const map = new Map();
const IMAGES = /.*\.(png|svg|jpg)$/;
const VERSIONED_ASSET = /\.[A-Fa-f0-9]{8}\.(js|css|png|svg|jpg)$/;
const VERSIONED_ASSET = /\.[A-Fa-f0-9]{8}\.(js|css|png|svg|jpg)(#\w+)?$/;
const DOWNLOAD_URL = /\/api\/download\/([A-Fa-f0-9]{4,})/;
const FONT = /\.woff2?$/;