mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
feat: add get ip endpoint
* rename handler * change rate limit
This commit is contained in:
1 parent
3b9ea9ea50
commit
b9a79eb435
6 files changed
+22
-4
No files matched your search
+1
-1
@@ -38,7 +38,6 @@ async function main() {
|
||||
const server = http.createServer(app)
|
||||
socketServer(server)
|
||||
app.set('trust proxy', true)
|
||||
app.use(errorHandler)
|
||||
app.use(globalRateLimit)
|
||||
app.use(sessionMiddleware)
|
||||
app.use(passport.session())
|
||||
@@ -56,6 +55,7 @@ async function main() {
|
||||
})
|
||||
|
||||
app.use('/api/v1', apiRouter)
|
||||
app.use(errorHandler)
|
||||
|
||||
server.listen(config.port, config.host, () => {
|
||||
console.log(`Server listening at ${config.baseUrl}`)
|
||||
|
||||
Reference in new issue
Block a user