Skip to content

best way to save what you love

api/core: fix typo

wukko51bd2f72fd28
diff --git a/api/src/core/api.js b/api/src/core/api.js
index 60fdf86c..44deb7c9 100644
--- a/api/src/core/api.js
+++ b/api/src/core/api.js
@@ -101,7 +101,7 @@ export function runAPI(express, app, __dirname) {
})
app.use('/', express.json({ limit: 1024 }));
- app.use('/post', (err, _, res, next) => {
+ app.use('/', (err, _, res, next) => {
if (err) {
const { status, body } = createResponse("error", {
code: "error.body_invalid",