@@ -549,6 +549,10 @@ app.delete('/admin/api/posts/:id', adminAuth, (req, res) => {
});
// 管理页面路由
app.get('/admin', (req, res) => {
res.redirect('/admin/');
app.get('/admin/*', (req, res) => {
res.sendFile(path.join(__dirname, 'public', 'admin', 'index.html'));
The note is not visible to the blocked user.