Skip to content

Commit

Permalink
Save API remade as express app
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyPerov committed Jan 26, 2022
1 parent b0a5d85 commit 4ffbef6
Show file tree
Hide file tree
Showing 4 changed files with 196 additions and 1,682 deletions.
6 changes: 3 additions & 3 deletions back_api/app.js
Expand Up @@ -8,8 +8,6 @@ const urlFormat = process.env.URL_FORMAT;
const admin = require('firebase-admin');
const serviceAccount = require('./serviceAccountKey.json');

const sls = require('serverless-http');

const express = require('express');
const app = express();

Expand Down Expand Up @@ -146,4 +144,6 @@ function replaceAll(str, find, replace) {
return str.replace(new RegExp(find, 'g'), replace);
}

module.exports.handler = sls(app);
app.listen(3000, function () {
console.log('App listening');
});

0 comments on commit 4ffbef6

Please sign in to comment.