adding dotenv & publishing to web3.storage 💰

This commit is contained in:
Will Holcomb
2021-09-04 12:59:53 -04:00
committed by Alec LaLonde
parent b971c57653
commit 18075f7b81
2 changed files with 3 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
import { Request, Response } from 'express';
import { getFilesFromPath,Web3Storage } from 'web3.storage';
import { getFilesFromPath, Web3Storage } from 'web3.storage';
import { CONFIG } from '../../../config'

View File

@@ -6,6 +6,7 @@ import express from 'express';
import { CONFIG } from './config';
import { router } from './handlers/routes';
import bodyParser from 'body-parser';
// import { errorMiddleware } from './lib/apiHelpers';
const app = express();
@@ -16,7 +17,7 @@ app.locals.limiter = new Bottleneck({
// tracks the current contents of Bottleneck
app.locals.queuedRecacheFor = {};
app.use(express.json());
app.use(bodyParser.json());
app.use(cors({ credentials: true, origin: true }));