-
-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove ConverterService usage in the codebase
- Loading branch information
Showing
21 changed files
with
151 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
docs/docs/snippets/configuration/modulev0-endpoint-versionning.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import {Module} from "@tsed/di"; | ||
import {resolve} from "path"; | ||
import {UserController} from "./users/UserController"; | ||
|
||
@Module({ | ||
mount: { | ||
"/rest/v0": [`./controllers/v0/users/*.ts`, `./controllers/v0/groups/*.ts`] | ||
"/rest/v0": [UserController] | ||
} | ||
}) | ||
export class ModuleV0 {} |
4 changes: 2 additions & 2 deletions
4
docs/docs/snippets/configuration/modulev1-endpoint-versionning.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import {Module} from "@tsed/di"; | ||
import {resolve} from "path"; | ||
import {UserController} from "./users/UserController"; | ||
|
||
@Module({ | ||
mount: { | ||
"/rest/v1": [`./controllers/v1/**/*.ts`] | ||
"/rest/v1": [UserController] | ||
} | ||
}) | ||
export class ModuleV1 {} |
15 changes: 12 additions & 3 deletions
15
docs/docs/snippets/configuration/server-endpoint-versionning.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
import {Configuration} from "@tsed/di"; | ||
import {resolve} from "path"; | ||
import * as v1Controllers from "./controllers/v1/index"; | ||
import * as v0Controllers from "./controllers/v0/index"; | ||
|
||
@Configuration({ | ||
mount: { | ||
"/rest/v1": [`./controllers/v1/**/*.ts`], | ||
"/rest/v0": [`./controllers/v0/users/*.ts`, `./controllers/v0/groups/*.ts`] | ||
"/rest/v1": [...Object.values(v1Controllers)], | ||
"/rest/v0": [...Object.values(v0Controllers)] | ||
} | ||
}) | ||
export class Server {} | ||
|
||
// v1/index.ts | ||
export * from "./users/UserControllers"; | ||
export * from "./groups/GroupsControllers"; | ||
|
||
// v0/index.ts | ||
export * from "./users/UserControllers"; | ||
export * from "./groups/GroupsControllers"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.