Experimental port to Firebase hosting

This commit is contained in:
Michael Jackson
2019-01-05 16:50:05 -08:00
parent e4d6df255e
commit 31e7d3865a
300 changed files with 129300 additions and 5817 deletions

View File

@ -1,10 +1,10 @@
const parsePackageURL = require('../utils/parsePackageURL');
import parsePackageURL from '../utils/parsePackageURL';
/**
* Parse the URL and add various properties to the request object to
* do with the package/file being requested. Reject invalid URLs.
*/
function validatePackageURL(req, res, next) {
export default function validatePackageURL(req, res, next) {
const url = parsePackageURL(req.url);
if (url == null) {
@ -21,5 +21,3 @@ function validatePackageURL(req, res, next) {
next();
}
module.exports = validatePackageURL;