-
Declaration
Swift
func registerRoutes(_ app: Application) throws
-
eventsPageHandler(_:
Asynchronous) GET /events
By default, shows a day’s worth events. Always attempts to show events from a day on the actual cruise. Uses
Settings.shared.cruiseStartDate
for cruise dates; the ingested schedule should have events for that day and the next 7 days.Use the ‘day’ or ‘cruiseday’ query parameter to request which day to show. If no parameter given, uses the current day of week.
When the search parameter is used, returns events for the entire cruise, that match the search value.
Query Parameters:
- day=STRING One of: “sun” … “sat”. Can also use “1sat” for first Saturday (embarkation day), or “2sat” for the next Saturday.
- cruiseday=INT Generally 1…8, where 1 is embarkation day.
- search=STRING Filter only events that match the given string.
Declaration
Swift
func eventsPageHandler(_ req: Request) async throws -> View
-
eventGetPageHandler(_:
Asynchronous) Declaration
Swift
func eventGetPageHandler(_ req: Request) async throws -> View
-
eventsDownloadICSHandler(_:
Asynchronous) Declaration
Swift
func eventsDownloadICSHandler(_ req: Request) async throws -> Response
-
personalEventDownloadICSHandler(_:
Asynchronous) Declaration
Swift
func personalEventDownloadICSHandler (_ req: Request) async throws -> Response
-
eventsDownloadFollowingHandler(_:
Asynchronous) Declaration
Swift
func eventsDownloadFollowingHandler(_ req: Request) async throws -> Response
-
eventsAddRemoveFavoriteHandler(_:
Asynchronous) Declaration
Swift
func eventsAddRemoveFavoriteHandler(_ req: Request) async throws -> HTTPStatus