index.js 246 Bytes
Newer Older
陈帅's avatar
陈帅 committed
1 2 3
// [START functionsimport]
const functions = require('firebase-functions');
const express = require('express');
陈帅's avatar
陈帅 committed
4

陈帅's avatar
陈帅 committed
5
const matchMock = require('./matchMock');
陈帅's avatar
陈帅 committed
6

陈帅's avatar
陈帅 committed
7 8
const app = express();

陈帅's avatar
陈帅 committed
9
app.use(matchMock);
陈帅's avatar
陈帅 committed
10
exports.api = functions.https.onRequest(app);