added default /public static folder and middleware