disable api routes on server