Skip to content

krishnamurthy GET endpoint does not read number from request body #82

@YuvalG724

Description

@YuvalG724

Bug: The /krishnamurthy endpoint is defined as GET but tries to read req.body.number.
GET requests don’t have a body, so the endpoint always fails.

Steps to Reproduce:

  1. Run the server: node app.js
  2. Send GET request:
    http://localhost:5000/krishnamurthy?number=145
  3. Observe that the endpoint does not respond correctly.

Expected Behavior:
The server should respond with:
{
"message": "The Number is a Krishnamurthy Number"
}

Actual Behavior:
The server cannot read the number and returns undefined or an error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions