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

@ -2,7 +2,7 @@
* Adds the given scope to the array in req.auth if the user has sufficient
* permissions. Otherwise rejects the request.
*/
function requireAuth(scope) {
export default function requireAuth(scope) {
let checkScopes;
if (scope.includes('.')) {
const parts = scope.split('.');
@ -36,5 +36,3 @@ function requireAuth(scope) {
next();
};
}
module.exports = requireAuth;