Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [0.14.2] - 2025-03-03

### Fixed

- posix style is enforced when assigning paths in `@Controller` (so it still
works when running on Windows platform)

## [0.14.1] - 2025-02-23

### Changed
Expand Down
2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dklab/oak-routing-ctrl",
"version": "0.14.1",
"version": "0.14.2",
"exports": {
".": "./mod.ts",
"./mod": "./mod.ts"
Expand Down
4 changes: 2 additions & 2 deletions src/Controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { join } from "@std/path";
import { join } from "@std/path/posix";
import { debug } from "./utils/logger.ts";
import { store } from "./Store.ts";
import { patchOasPath } from "./oasStore.ts";
Expand Down Expand Up @@ -38,7 +38,7 @@ export const Controller =
if (!pair) continue;
const patchedPair = new Map();
pair.forEach((verb, path) => {
const fullPath = join(pathPrefix, path);
const fullPath = join(pathPrefix, path); // @NOTE **must** be posix style
patchedPair.set(fullPath, verb);
debug(
`[${ctrlClassName}] @Controller: patched [${verb}] ${path} to ${fullPath}`,
Expand Down