kartikk221 / live-directory

A Simple-To-Use Dynamic Template Content Manager For Webservers
MIT License
12 stars 5 forks source link

Content-type and update code in hyper-express #8

Closed BSN4 closed 1 year ago

BSN4 commented 1 year ago

Hi thanks for this great package,

looks code was changed but the old example in hyper-express not updated also I saw file.extension no longer available

BSN4 commented 1 year ago

ok I found solution :

       const ext = path.split('.').pop();
        response.type(ext);

thanks again