mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
api/core: fix typo
This commit is contained in:
parent
4857030933
commit
51bd2f72fd
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue