ShiftWise API Docs
    Preparing search index...

    Function Ok

    • Sends a 200 OK response with a JSON body. Use for successful GET requests and non-creating POST/PUT operations.

      Parameters

      • res: Response

        Express response object

      • data: unknown

        Any JSON-serialisable value to send as the response body

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

      Ok(res, { accessToken, user, workspace })
      Ok(res, employees.map(formatEmployee))