ShiftWise API Docs
    Preparing search index...

    Module responses

    Convenience helpers for sending consistent HTTP success responses.

    These complement the errors module — together they replace all direct res.status().json() calls in route handlers with named, intention-revealing functions.

    // Instead of:
    res.status(201).json({ id: user.id })

    // Use:
    Created(res, { id: user.id })

    Functions

    Created
    NoContent
    Ok