feat: add get ip endpoint

* rename handler
* change rate limit
This commit is contained in:
wancat committed 2023-10-31 00:27:06 +08:00
1 parent 3b9ea9ea50
commit b9a79eb435
6 files changed
+22 -4

No files matched your search

+1 -1
View File
@@ -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}`)