Skip to content

Commit f5b8396

Browse files
authored
Refactor dev-proxy-toolkit.raise-mock command to use new API endpoint. Closes #222 (#229)
Closes #222
1 parent 9e976e6 commit f5b8396

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919

2020
- Command: Refactored stop command logic
2121
- Diagnostics: Changed check to ensure at least one plugin from Error to Warning
22+
- Command: `dev-proxy-toolkit.raise-mock` refactored to use new API endpoint
2223
- Snippets: Updated all snippets to use `v0.26.0` schema
2324

2425
## [0.18.3] - 2025-03-03

src/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export const registerCommands = (context: vscode.ExtensionContext, configuration
145145
context.subscriptions.push(
146146
vscode.commands.registerCommand('dev-proxy-toolkit.raise-mock', async () => {
147147
const apiPort = configuration.get('apiPort') as number;
148-
await fetch(`http://localhost:${apiPort}/proxy/raisemockrequest`, {
148+
await fetch(`http://localhost:${apiPort}/proxy/mockrequest`, {
149149
method: 'POST',
150150
headers: {
151151
'Content-Type': 'application/json'

0 commit comments

Comments
 (0)