change api paths to fix wrong card output
This commit is contained in:
parent
3938dc98fc
commit
15323ac887
2 changed files with 6 additions and 5 deletions
11
index.ts
11
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, () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue