Open denis-heka opened 5 years ago
There is a lot of repetition in the public handlers. The only difference between them is the filepath. Maybe you could refactor it using the req.url to help build the file path?
https://github.com/fac-15/DRINKIO/blob/715739fcf19634e351bcd5c7f4f3fba3b63e67fa/src/handlers.js#L28-L113
There is a lot of repetition in the public handlers. The only difference between them is the filepath. Maybe you could refactor it using the req.url to help build the file path?
https://github.com/fac-15/DRINKIO/blob/715739fcf19634e351bcd5c7f4f3fba3b63e67fa/src/handlers.js#L28-L113