Static middleware has to stay after the index one

If the static middleware is before the index delivery middleware than the static index.html file gets delivered and the app doesn't work.