Skip to content

Commit

Permalink
🎨 Use postlight to parse article.
Browse files Browse the repository at this point in the history
  • Loading branch information
tolerious committed Feb 25, 2024
1 parent 5b45da4 commit 8fe07ff
Show file tree
Hide file tree
Showing 5 changed files with 633 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ lerna-debug.log*
.pnpm-debug.log*
.pnpm-store/
ecosystem.config.js
test.html

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
Expand Down
3 changes: 2 additions & 1 deletion middleware/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const auth = function (req, res, next) {

if (
// TODO: This array should be a global array or a array in a global file
(["/logic/login", "/grab", "/user/"].indexOf(req.originalUrl) > -1 &&
(["/logic/login", "/test", "/grab", "/user/"].indexOf(req.originalUrl) >
-1 &&
(req.method === "POST" || req.method === "GET")) ||
rule.test(req.originalUrl) ||
userRegisterRule.test(req.originalUrl) ||
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@alicloud/credentials": "^2.2.6",
"@alicloud/dysmsapi20170525": "2.0.23",
"@alicloud/openapi-client": "^0.4.6",
"@postlight/parser": "^2.2.3",
"axios": "^1.4.0",
"cheerio": "1.0.0-rc.12",
"cookie-parser": "~1.4.4",
Expand Down
Loading

0 comments on commit 8fe07ff

Please sign in to comment.