Skip to content

Commit

Permalink
Update style
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Mar 10, 2020
1 parent 594d502 commit 0c1165c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ const app = express();

const pageLimiter = rateLimit({
windowMs: 30 * 1000,
max: 15
max: 30
});

const apiLimiter = rateLimit({
const commentLimiter = rateLimit({
windowMs: 60 * 1000,
max: 5
});

app.use(pageLimiter);
app.use('/api', apiLimiter);
app.use('/api/comment', commentLimiter);

app.locals.config = {};
app.locals.page = undefined;
Expand Down
2 changes: 1 addition & 1 deletion lightx-cms-admin
2 changes: 1 addition & 1 deletion views/partials/nav.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
try{
let links = JSON.parse(config.nav_links)
links.forEach((link)=>{%>
<li><a href="<%- link.link %>" target="_blank" rel="noreferrer"><%- link.text %></a></li>
<li><a href="<%- link.link %>" rel="noreferrer"><%- link.text %></a></li>
<%})
}
catch (e) {console.error(e.message)}} %>
Expand Down

0 comments on commit 0c1165c

Please sign in to comment.