10000 Controller with multiple enpoint · Issue #97 · seanpmaxwell/overnight · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Controller with multiple enpoint #97

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

Open
VersusF opened this issue Jul 4, 2022 · 0 comments
Open

Controller with multiple enpoint #97

VersusF opened this issue Jul 4, 2022 · 0 comments

Comments

@VersusF
Copy link
VersusF commented Jul 4, 2022

Hello,
this issue is similar to #46, as i would like to have a controller with multiple endpoints.

For example

@Controller("users")
@Controller("user")
export class UserController {
    @Get("")
    public async getAllUsers() {
        // Logic here
    }
}

So that the urls "GET /users" and "GET /user" ger mapped in the same functions.

The use case is the API migration, where I want to change name and during the intermediate phase both endpoints should be available.

Thanks for your work!

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
0