HuntController
struct HuntController : APIRouteCollection
The collection of /api/v3/hunts/* route endpoints and handler functions related to Hunts and their Puzzles.
-
Required. Registers routes to the incoming router.
Declaration
Swift
func registerRoutes(_ app: Application) throws -
list(_:Asynchronous) Declaration
Swift
func list(_ req: Request) async throws -> HuntListData -
getHunt(_:Asynchronous) Declaration
Swift
func getHunt(_ req: Request) async throws -> HuntData -
getHuntAdmin(_:Asynchronous) Declaration
Swift
func getHuntAdmin(_ req: Request) async throws -> HuntData -
getPuzzle(_:Asynchronous) Declaration
Swift
func getPuzzle(_ req: Request) async throws -> HuntPuzzleDetailData -
callIn(_:Asynchronous) Declaration
Swift
func callIn(_ req: Request) async throws -> Response -
addHunt(_:Asynchronous) Declaration
Swift
func addHunt(_ req: Request) async throws -> HTTPStatus -
updateHunt(_:Asynchronous) Declaration
Swift
func updateHunt(_ req: Request) async throws -> HTTPStatus -
updatePuzzle(_:Asynchronous) Declaration
Swift
func updatePuzzle(_ req: Request) async throws -> HTTPStatus -
deleteHunt(_:Asynchronous) Declaration
Swift
func deleteHunt(_ req: Request) async throws -> HTTPStatus
View on GitHub