Skip to content

Commit

Permalink
get rid of unused s3 draft code
Browse files Browse the repository at this point in the history
  • Loading branch information
ckolderup committed Nov 9, 2020
1 parent 5064bd9 commit 67941af
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 34 deletions.
8 changes: 0 additions & 8 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ import redis from "redis";
import friendlyWords from "friendly-words";
import bodyParser from "body-parser";

import getPresignedUploadUrl from 'lib/upload.js';

const S3_BUCKET = process.env.S3_BUCKET;

const app = express();

const redisClient = redis.createClient(process.env.REDIS_PORT, process.env.REDIS_HOST);
Expand Down Expand Up @@ -62,10 +58,6 @@ app.post("/api/scores/:room", (req, res) => {
res.send('{"ok": true}');
});

app.get("/api/image/upload-url", (req, res) => {
res.send(`{"url": "${getPresignedUploadUrl(S3_BUCKET, 'player-avatars')}"}`);
});

io.on("connect", (socket) => {
//socket.on("disconnect", () => { })

Expand Down
24 changes: 0 additions & 24 deletions server/lib/upload.js

This file was deleted.

2 changes: 0 additions & 2 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"version": "1.0.0",
"private": true,
"dependencies": {
"aws-sdk": "^2.780.0",
"body-parser": "1.19.0",
"express": "^4.17.1",
"friendly-words": "1.1.10",
"redis": "3.0.2",
Expand Down

0 comments on commit 67941af

Please sign in to comment.