File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1+ ## [ 0.14.2] - 2025-03-03
2+
3+ ### Fixed
4+
5+ - posix style is enforced when assigning paths in ` @Controller ` (so it still
6+ works when running on Windows platform)
7+
18## [ 0.14.1] - 2025-02-23
29
310### Changed
Original file line number Diff line number Diff line change 11{
22 "name" : " @dklab/oak-routing-ctrl" ,
3- "version" : " 0.14.1 " ,
3+ "version" : " 0.14.2 " ,
44 "exports" : {
55 "." : " ./mod.ts" ,
66 "./mod" : " ./mod.ts"
Original file line number Diff line number Diff line change 1- import { join } from "@std/path" ;
1+ import { join } from "@std/path/posix " ;
22import { debug } from "./utils/logger.ts" ;
33import { store } from "./Store.ts" ;
44import { patchOasPath } from "./oasStore.ts" ;
@@ -38,7 +38,7 @@ export const Controller =
3838 if ( ! pair ) continue ;
3939 const patchedPair = new Map ( ) ;
4040 pair . forEach ( ( verb , path ) => {
41- const fullPath = join ( pathPrefix , path ) ;
41+ const fullPath = join ( pathPrefix , path ) ; // @NOTE **must** be posix style
4242 patchedPair . set ( fullPath , verb ) ;
4343 debug (
4444 `[${ ctrlClassName } ] @Controller: patched [${ verb } ] ${ path } to ${ fullPath } ` ,
You can’t perform that action at this time.
0 commit comments