mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
adding dotenv & publishing to web3.storage 💰
This commit is contained in:
committed by
Alec LaLonde
parent
b971c57653
commit
18075f7b81
@@ -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'
|
||||
|
||||
|
||||
@@ -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 }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user