Skip to content

Commit

Permalink
feat: add BaseAPI route for ProjectUser model and service
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Mar 5, 2025
1 parent 11c2bb0 commit 2a75221
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions App/FeatureSet/BaseAPI/Index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,10 @@ import WorkspaceNotificationRule from "Common/Models/DatabaseModels/WorkspaceNot
import WorkspaceNotificationRuleService, {
Service as WorkspaceNotificationRuleServiceType,
} from "Common/Server/Services/WorkspaceNotificationRuleService";
import ProjectUser from "Common/Models/DatabaseModels/ProjectUser";
import ProjectUserService, {
Service as ProjectUserServiceType
} from "Common/Server/Services/ProjectUserService";

const BaseAPIFeatureSet: FeatureSet = {
init: async (): Promise<void> => {
Expand Down Expand Up @@ -578,6 +582,15 @@ const BaseAPIFeatureSet: FeatureSet = {
).getRouter(),
);


app.use(
`/${APP_NAME.toLocaleLowerCase()}`,
new BaseAPI<ProjectUser, ProjectUserServiceType>(
ProjectUser,
ProjectUserService,
).getRouter(),
);

//service provider setting
app.use(
`/${APP_NAME.toLocaleLowerCase()}`,
Expand Down

0 comments on commit 2a75221

Please sign in to comment.