mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
Fix bug
This commit is contained in:
parent
f4a2506ce5
commit
a478211463
@ -137,6 +137,7 @@
|
||||
"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",
|
||||
|
@ -1,4 +1,5 @@
|
||||
import * as Router from 'koa-router';
|
||||
const koaBody = require('koa-body');
|
||||
const parseRequest = require('http-signature');
|
||||
|
||||
import { createHttp } from '../queue';
|
||||
@ -18,7 +19,7 @@ const router = new Router();
|
||||
//#region Routing
|
||||
|
||||
// inbox
|
||||
router.post('/users/:user/inbox', ctx => {
|
||||
router.post('/users/:user/inbox', koaBody(), ctx => {
|
||||
let signature;
|
||||
|
||||
ctx.req.headers.authorization = 'Signature ' + ctx.req.headers.signature;
|
||||
|
Loading…
Reference in New Issue
Block a user