ShiftWise API Docs
    Preparing search index...

    Function Created

    • Sends a 201 Created response with a JSON body. Use when a new resource has been successfully created.

      Parameters

      • res: Response

        Express response object

      • data: unknown

        The newly created resource or a confirmation payload

      Returns Response<any, Record<string, any>>

      Created(res, { id: user.id, email: user.email, role: membership.role })