adding aws upload to the create post api

This commit is contained in:
Will Baumbach
2025-07-26 13:06:35 -05:00
parent 2704577d39
commit 54e960eaf6
8 changed files with 663 additions and 12 deletions

View File

@@ -9,6 +9,7 @@ import { fileURLToPath } from 'url';
import xss from 'xss-clean';
import indexRouter from './routes/index.js';
import postsRouter from './routes/posts.js';
import usersRouter from './routes/users.js';
const __filename = fileURLToPath(import.meta.url);
@@ -33,7 +34,7 @@ app.use(xss());
app.use('/', indexRouter);
app.use('/api/v1/users', usersRouter);
// app.use('/api/v1/posts', usersRouter);
app.use('/api/v1/posts', postsRouter);
// catch 404 and forward to error handler
app.use(function(req, res, next) {