0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

refactor: uncomment feature guard (#5676)

This commit is contained in:
Gao Sun 2024-04-11 09:22:45 +08:00 committed by GitHub
parent dd08efe050
commit c1c91b6ab8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,7 +8,6 @@ import {
import { yes } from '@silverhand/essentials';
import { z } from 'zod';
import { EnvSet } from '#src/env-set/index.js';
import RequestError from '#src/errors/RequestError/index.js';
import koaGuard from '#src/middleware/koa-guard.js';
import koaPagination from '#src/middleware/koa-pagination.js';
@ -239,11 +238,7 @@ export default function organizationRoutes<T extends AuthedRouter>(...args: Rout
// MARK: Mount sub-routes
organizationRoleRoutes(...args);
organizationScopeRoutes(...args);
// FIXME: @gao-sun
if (EnvSet.values.isDevFeaturesEnabled) {
organizationInvitationRoutes(...args);
}
organizationInvitationRoutes(...args);
// Add routes to the router
originalRouter.use(router.routes());