api/core: fix typo

This commit is contained in:
wukko 2024-08-16 23:41:20 +06:00
parent 4857030933
commit 51bd2f72fd
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -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",