From 4f599d4ff557872643302b9a0eb542466a745468 Mon Sep 17 00:00:00 2001 From: goat <16760685+goaaats@users.noreply.github.com> Date: Wed, 26 May 2021 00:00:54 +0200 Subject: [PATCH] Heroku compat, get / --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 72b6bff..c804dc3 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ const fetch = require("node-fetch"); const express = require('express'); const app = express(); -const port = 80; +const port = process.env.PORT || 5000; const { CardCreator } = require('./create-card'); @@ -45,6 +45,10 @@ app.get('/characters/name/:world/:charName', async (req, res) => { } }) +app.get('/', async (req, res) => { + res.redirect('https://github.com/ArcaneDisgea/XIV-Character-Cards'); +}) + app.listen(port, () => { console.log(`Listening at http://localhost:${port}`) }) \ No newline at end of file