Skip to content

Commit

Permalink
fix: 修改字段
Browse files Browse the repository at this point in the history
  • Loading branch information
JackySoft committed Oct 14, 2024
1 parent 2cf59a2 commit 3e36102
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/koa/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const koajwt = require('koa-jwt');
const path = require('path');
const { routerInstaller } = require('./utils/installer');
const errorHandler = require('./error');

const config = require('./config');
const app = new Koa();
app.use(
cors({
Expand Down Expand Up @@ -66,7 +66,7 @@ app.use(

// token 鉴权
app.use(
koajwt({ secret: 'mars-api-lowcode@marsview' }).unless({
koajwt({ secret: config.JWT_SECRET }).unless({
path: [
/^\/api\/user\/login/,
/^\/api\/user\/sendEmail/,
Expand Down

0 comments on commit 3e36102

Please sign in to comment.