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,6 +1,6 @@
const path = require('path');
import path from 'path';
const addLeadingSlash = require('../utils/addLeadingSlash');
import addLeadingSlash from '../utils/addLeadingSlash';
function getMatchingEntries(entry, entries) {
const dirname = entry.name || '.';
@ -30,7 +30,7 @@ function getMetadata(entry, entries) {
return metadata;
}
function serveMetadata(req, res) {
export default function serveMetadata(req, res) {
const metadata = getMetadata(req.entry, req.entries);
res
@ -40,5 +40,3 @@ function serveMetadata(req, res) {
})
.send(metadata);
}
module.exports = serveMetadata;