Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

post working even when not passing in multi array #387

Closed
irohitb opened this issue Jun 22, 2020 · 1 comment
Closed

post working even when not passing in multi array #387

irohitb opened this issue Jun 22, 2020 · 1 comment

Comments

@irohitb
Copy link

irohitb commented Jun 22, 2020

Problem.

I am specifying only find and get in multi here

app.use(
  "/analytics",
  service({
    Model: orderModel,
    multi: ["find", "get"],
  })
);

but when I make a post request using postman it is still allowing me

Steps to reproduce

  1. clone this repo
  2. Install dependencies and npm run dev script
  3. Go to postman and make an api call to this route http://localhost:3030/analytics

Screenshot 2020-06-22 at 7 39 12 PM

Expected behavior

it should've not allowed me

@irohitb irohitb changed the title post working when not passing in multi array post working even when not passing in multi array Jun 22, 2020
@irohitb
Copy link
Author

irohitb commented Jun 22, 2020

I read the documentation wrong

@irohitb irohitb closed this as completed Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant