MSakamaki/sls-example

browser-sync to express

Closed this issue · 0 comments

// npm install @types/express express
import * as express from 'express';
import { MOCK_API } from './index';

const app = express()

MOCK_API.forEach((api: any) => {
  console.log(  typeof api);
  if (typeof api === 'function') {
    app.use(api);
  }
})

app.listen(3010);