Use const is better then let

This commit is contained in:
2020-04-03 00:11:57 +08:00
parent 64b4246d38
commit 6347ad4c2b

View File

@ -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);