Archived
1
0

Upgrade to Express 5

Now async routes are handled!
This commit is contained in:
Asher
2020-11-05 11:36:27 -06:00
parent 8252c372af
commit 9e09c1f92b
4 changed files with 54 additions and 50 deletions

View File

@ -55,10 +55,6 @@ export const register = async (app: Express, server: http.Server, args: Defaulte
app.use(bodyParser.json())
app.use(bodyParser.urlencoded({ extended: true }))
server.on("upgrade", () => {
heart.beat()
})
app.use(async (req, res, next) => {
heart.beat()