change api paths to fix wrong card output

This commit is contained in:
Domai 2023-06-13 11:22:26 +02:00
parent 3938dc98fc
commit 15323ac887
No known key found for this signature in database
GPG key ID: 8F0CBA9FA6CBDB53
2 changed files with 6 additions and 5 deletions

View file

@ -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, () => {