Skip to content

roles.sync endpoint still uses legacy #39195

@NAME-ASHWANIYADAV

Description

@NAME-ASHWANIYADAV

The roles.sync GET endpoint (apps/meteor/app/api/server/v1/roles.ts) still uses the deprecated API.v1.addRoute pattern with Meteor's check/Match for input validation.

It should be migrated to the new chained API pattern (.get()) with AJV validation, consistent with other recently migrated endpoints like roles.getUsersInPublicRoles.

Files involved

  • apps/meteor/app/api/server/v1/roles.ts
  • packages/rest-typings/src/v1/roles.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featurePull requests that introduces new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions