Comments (3)
@micalevisk tried out, seems it's doesn't work with URI versioning, here is a simple example:
app.enableVersioning({
defaultVersion: '1', // with or without it doesn't matter
type: VersioningType.CUSTOM,
extractor: (_req: unknown): string => '1',
});
After that I can't access endpoints /v1/something
. Based on examples it's specifically designed for custom versioning using headers, not uri.
from nest.
I think that this can be addressed with the custom versioning type, although not simple as you're suggesting
Can you please try it out?
from nest.
Thanks for your suggestion!
There are no plans to implement it in the foreseeable future.
If you think your request could live outside Nest's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.
from nest.
Related Issues (20)
- Docs Improvements: Samples Node Version HOT 2
- Pipe validation for `@UploadFiles()` not working HOT 1
- @nestjs/platform-ws: Application shutdown hangs
- feat: add rdkafka support
- Calling start() on grpc client throws DeprecationWarning after @grpc/grpc-js v1.10.0 HOT 1
- Service Injection Issue in Guard Across Modules HOT 3
- Example Deno+nest project with working tests
- Base exception filter ignores exception cause HOT 3
- TypeError: _compression is not a function when using compression middleware in NestJS 10.3.3 and SWC as TypeScript compiler HOT 1
- Autowire dependencies without annotations HOT 2
- bug : cannot use KY with latest NestJS HOT 1
- Path aliases / relative imports in a monorepo breaks `nest start` HOT 3
- ValidationPipe({transform: true}) transforms non-numeric strings to NaN HOT 2
- Throwing an exception still leads to a crash HOT 11
- If HttpAdapterHost is a provider, is it part of the current ClsModule? HOT 1
- Add support for fastify-passport package
- Express Middleware not being called for some endpoints HOT 7
- Some CLI commands do not work in project root directory HOT 4
- move away from reflect-metadata HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nest.