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)
- Throwing an exception still leads to a crash HOT 11
- If HttpAdapterHost is a provider, is it part of the current ClsModule? HOT 1
- Express Middleware not being called for some endpoints HOT 8
- Some CLI commands do not work in project root directory HOT 4
- move away from reflect-metadata HOT 1
- Typescript compilation error with fastify adapter HOT 4
- Payment integration using phonepay documentation HOT 1
- handleConnection method can conflict with WebSocket Gateway lifecycle hook HOT 1
- Feat: Add support for turbopack HOT 1
- The sequence of messages from the Observable pipe in the sse method of router-response-controller.ts is disordered. HOT 1
- configurable threshold for The module ... is taking ...ms to serialize HOT 2
- owned types are marked as extension HOT 1
- zod validation with @Param error HOT 1
- Why I can't use Logger in extended (child) classes? HOT 1
- path is undefined when using file FilesInterceptor for file uploading HOT 2
- How to use metadata to get information from decorators HOT 2
- NestJs middlewares don't run when fastify is the HTTP adapter HOT 3
- This framework does not feel great at all. HOT 2
- Just started with the boilerplate and test does not run HOT 2
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.