feat: add blog_options and rss feed generation
This commit is contained in:
@@ -4,9 +4,11 @@ import path from 'path';
|
||||
import cookieParser from 'cookie-parser';
|
||||
import logger from 'morgan';
|
||||
|
||||
import authenticateToken from './middlewares/authentication.js';
|
||||
import indexRouter from './routes/index.js';
|
||||
import usersRouter from './routes/users.js';
|
||||
import postsRouter from './routes/posts.js';
|
||||
import conclaveRouter from './routes/conclave.js';
|
||||
|
||||
var app = express();
|
||||
|
||||
@@ -16,13 +18,14 @@ app.set('view engine', 'pug');
|
||||
|
||||
app.use(logger('dev'));
|
||||
app.use(express.json());
|
||||
app.use(express.urlencoded({ extended: false }));
|
||||
app.use(express.urlencoded({ extended: true }));
|
||||
app.use(cookieParser());
|
||||
// app.use(express.static(path.join(import.meta.dirname, 'public')));
|
||||
|
||||
app.use('/', indexRouter);
|
||||
app.use('/users', usersRouter);
|
||||
app.use('/posts', postsRouter);
|
||||
app.use('/conclave', authenticateToken, conclaveRouter);
|
||||
|
||||
// catch 404 and forward to error handler
|
||||
app.use(function(_req, _res, next) {
|
||||
|
||||
Reference in New Issue
Block a user