1) Just use: `Get["/icalendar.ics"] => options => GetCalendarFeed();` Move `return new TextResponse(resource, "text/calendar");` to the method