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
import { Controller, Get, Req } from '@nestjs/common'; @Controller('usera') export class UserController { @Get('details') details(@Req() request) { return request.path; } }
import { Controller, Get, Req, Body } from '@nestjs/common'; @Controller('userb') export class UserController { @Get('details') details(@Body() body, @Req() request) { return request.path; } }
import { Module } from '@nestjs/common'; import { UserController as AUserController } from './a/user.controller'; import { UserController as BUserController } from './b/user.controller'; @Module({ controllers: [AUserController, BUserController], }) export class AppModule {}
http://localhost:3000/usera/details will get 404
if change the order of controllers like:
import { Module } from '@nestjs/common'; import { UserController as AUserController } from './a/user.controller'; import { UserController as BUserController } from './b/user.controller'; @Module({ controllers: [BUserController, AUserController], }) export class AppModule {}
http://localhost:3000/userb/details will get 404
there is a repo https://github.com/xyunsh/samenamed
The text was updated successfully, but these errors were encountered:
#789
Sorry, something went wrong.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
Input Code
Controller A
Controller B
App Module
http://localhost:3000/usera/details will get 404
if change the order of controllers like:
http://localhost:3000/userb/details will get 404
there is a repo
https://github.com/xyunsh/samenamed
The text was updated successfully, but these errors were encountered: