Updated routes to handle OPTIONS requests