We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
main.ts
import { Restivus } from 'meteor/nimble:restivus'; const RestApi = new Restivus({ apiPath: '/api/', prettyJson: true, enableCors: false });
api1.ts
import {RestApi } from './main'; RestApi.addRoute(':company/subscription', { authRequired: false }, { get: function () { //code .. } });
api2.ts
import {RestApi } from './main'; RestApi.addRoute(':subscription/event', { authRequired: false }, { post: function () { //code .. } });
This is how the code is divided into 3 files. The issue is, When I invoke the endpoint :company/subscription the url param that I get is
:company/subscription
{ subscription: "value" }
instead of
{ company: "value" }
But when I invoke the endpoint :subscription/event I get the correct url param i.e.
:subscription/event
The text was updated successfully, but these errors were encountered:
No branches or pull requests
main.ts
api1.ts
api2.ts
This is how the code is divided into 3 files.
The issue is,
When I invoke the endpoint
:company/subscription
the url param that I get isinstead of
But when I invoke the endpoint
:subscription/event
I get the correct url param i.e.The text was updated successfully, but these errors were encountered: