Open ashatat opened 6 years ago
https://github.com/FACG5/asi-autocomplete/blob/0f66d3d22af5ace2719bc050d614ef64b13e0c47/src/router.js#L1-L9
I really liked that you use destructuring variables but if I were you I'd use most of the ES6 features such as const & arrow function
const { serverStaticFile, handelhomepage, autocomplete, handelError, writeFile } = require("./functions.js") const router = (req, res) => {
https://github.com/FACG5/asi-autocomplete/blob/0f66d3d22af5ace2719bc050d614ef64b13e0c47/src/router.js#L1-L9
I really liked that you use destructuring variables but if I were you I'd use most of the ES6 features such as const & arrow function