Commit c140e70
committed
Add support for v2 API endpoints in VaultController
Updated the `VaultController` to include new routes for `v2` API endpoints:
- Added `[HttpGet("/api/v2/vault/{key}")]` to `GetVaultAsync`.
- Added `[HttpPost("/api/v2/vault/{key}")]` to `UpdateVaultAsync`.
- Added `[HttpGet("/api/v2/vault/secrets/{keyId}")]` to `GetSecret`.
These changes ensure backward compatibility with `v1` endpoints while enabling the application to handle `v2` requests, facilitating a smooth transition to the new API version.1 parent 50b0d67 commit c140e70
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| |||
0 commit comments