mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 21:37:59 +00:00
implemented comments
This commit is contained in:
@@ -37,6 +37,7 @@ import {
|
||||
membership as v1MembershipRouter,
|
||||
key as v1KeyRouter,
|
||||
inviteOrg as v1InviteOrgRouter,
|
||||
oauth as v1OAuth,
|
||||
user as v1UserRouter,
|
||||
userAction as v1UserActionRouter,
|
||||
secret as v1SecretRouter,
|
||||
@@ -78,6 +79,7 @@ import {
|
||||
getSiteURL,
|
||||
getSessionSecret,
|
||||
} from './config';
|
||||
import { initializePassport } from './utils/auth';
|
||||
|
||||
const main = async () => {
|
||||
TelemetryService.logTelemetryMessage();
|
||||
@@ -95,6 +97,9 @@ const main = async () => {
|
||||
|
||||
patchRouterParam();
|
||||
const app = express();
|
||||
|
||||
await initializePassport();
|
||||
|
||||
app.enable('trust proxy');
|
||||
app.use(express.json());
|
||||
app.use(cookieParser());
|
||||
@@ -129,6 +134,7 @@ const main = async () => {
|
||||
// v1 routes (default)
|
||||
app.use('/api/v1/signup', v1SignupRouter);
|
||||
app.use('/api/v1/auth', v1AuthRouter);
|
||||
app.use('/api/v1/oauth', v1OAuth);
|
||||
app.use('/api/v1/bot', v1BotRouter);
|
||||
app.use('/api/v1/user', v1UserRouter);
|
||||
app.use('/api/v1/user-action', v1UserActionRouter);
|
||||
|
||||
Reference in New Issue
Block a user