mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 03:17:38 -07:00
Fix bug
This commit is contained in:
parent
1c2aaec303
commit
11cb8a3ba8
2 changed files with 3 additions and 3 deletions
|
@ -137,10 +137,10 @@
|
|||
"js-yaml": "3.11.0",
|
||||
"jsdom": "11.7.0",
|
||||
"koa": "2.5.0",
|
||||
"koa-body": "^2.5.0",
|
||||
"koa-bodyparser": "4.2.0",
|
||||
"koa-compress": "^2.0.0",
|
||||
"koa-favicon": "2.0.1",
|
||||
"koa-json-body": "^5.3.0",
|
||||
"koa-mount": "3.0.0",
|
||||
"koa-multer": "1.0.2",
|
||||
"koa-router": "7.4.0",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import * as Router from 'koa-router';
|
||||
const koaBody = require('koa-body');
|
||||
const json = require('koa-json-body');
|
||||
const httpSignature = require('http-signature');
|
||||
|
||||
import { createHttp } from '../queue';
|
||||
|
@ -19,7 +19,7 @@ const router = new Router();
|
|||
//#region Routing
|
||||
|
||||
// inbox
|
||||
router.post('/users/:user/inbox', koaBody(), ctx => {
|
||||
router.post('/users/:user/inbox', json(), ctx => {
|
||||
let signature;
|
||||
|
||||
ctx.req.headers.authorization = 'Signature ' + ctx.req.headers.signature;
|
||||
|
|
Loading…
Reference in a new issue