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

Get and Post specific actions #93

Open
JamieJson opened this issue Jun 21, 2021 · 0 comments
Open

Get and Post specific actions #93

JamieJson opened this issue Jun 21, 2021 · 0 comments

Comments

@JamieJson
Copy link

Hi,

Sorry I have a newbie question that I thought it's best to ask here. I'm not sure if there is a Gitter or a channel where there are molecular fans?

Question 1) when using molecular typescript or this boilerplate code, how would you restrict an action to only GET or post ?

Question 2) or even how would you have same endpoint with different verbs?
GET /Defend
POST /Defend
UPDATE /Defend
DELETE /Defend

is this configured in the routes in the NAT or transporter? can we do it in the service itself ? (I can't see any option in the action decorator)
image

public async Defend(ctx: Context<IPlanet.DefendInDto>): Promise<IPlanet.DefendOutDto> {

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