From 15323ac887628144b360da8e96ba999890c57a3d Mon Sep 17 00:00:00 2001 From: Domai Date: Tue, 13 Jun 2023 11:22:26 +0200 Subject: [PATCH] change api paths to fix wrong card output --- api/{index.ts => profile.ts} | 0 index.ts | 11 ++++++----- 2 files changed, 6 insertions(+), 5 deletions(-) rename api/{index.ts => profile.ts} (100%) diff --git a/api/index.ts b/api/profile.ts similarity index 100% rename from api/index.ts rename to api/profile.ts diff --git a/index.ts b/index.ts index ab7a657..77a38c1 100644 --- a/index.ts +++ b/index.ts @@ -1,17 +1,18 @@ import express from 'express' -import api from './api' +import api from './api/profile' import history from './api/history' import topLangs from './api/top-langs' +import profile from './api/profile' const app = express() -app.use('/api', api) -app.use('/api/history', history) -app.use('/api/top-langs', topLangs) +app.use('/profile', profile) +app.use('/history', history) +app.use('/toplang', topLangs) app.get('/', (_, res) => { - res.redirect(301, 'https://github.com/aviortheking/codestats-readme') + res.redirect(301, 'https://github.com/domai-tb/codestats-readme') }) app.listen(3000, () => {