From 6347ad4c2b3a8790ba062f4d963bc663e0f4c2c8 Mon Sep 17 00:00:00 2001 From: Pin Lin Date: Fri, 3 Apr 2020 00:11:57 +0800 Subject: [PATCH] Use const is better then let --- src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index d0a5fcf..111c8d0 100644 --- a/src/app.ts +++ b/src/app.ts @@ -1,7 +1,7 @@ import express from 'express'; import { getLocationOfTarget } from './app.service'; -let app = express(); +const app = express(); app.get('/*', async (req, res) => { const target = req.url.slice(1);