mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 12:39:59 +01:00
wip
This commit is contained in:
parent
cf3216223d
commit
f8bfec2963
@ -3,9 +3,7 @@ import * as express from 'express';
|
||||
import { parseRequest } from 'http-signature';
|
||||
import { createHttp } from '../../queue';
|
||||
|
||||
const app = express();
|
||||
|
||||
app.disable('x-powered-by');
|
||||
const app = express.Router();
|
||||
|
||||
app.post('/@:user/inbox', bodyParser.json({
|
||||
type() {
|
||||
|
@ -6,8 +6,7 @@ import config from '../../config';
|
||||
import Post from '../../models/post';
|
||||
import withUser from './with-user';
|
||||
|
||||
const app = express();
|
||||
app.disable('x-powered-by');
|
||||
const app = express.Router();
|
||||
|
||||
app.get('/@:user/outbox', withUser(username => {
|
||||
return `${config.url}/@${username}/inbox`;
|
||||
|
@ -5,8 +5,7 @@ import parseAcct from '../../acct/parse';
|
||||
import Post from '../../models/post';
|
||||
import User from '../../models/user';
|
||||
|
||||
const app = express();
|
||||
app.disable('x-powered-by');
|
||||
const app = express.Router();
|
||||
|
||||
app.get('/@:user/:post', async (req, res, next) => {
|
||||
const accepted = req.accepts(['html', 'application/activity+json', 'application/ld+json']);
|
||||
|
@ -4,8 +4,7 @@ import render from '../../remote/activitypub/renderer/key';
|
||||
import config from '../../config';
|
||||
import withUser from './with-user';
|
||||
|
||||
const app = express();
|
||||
app.disable('x-powered-by');
|
||||
const app = express.Router();
|
||||
|
||||
app.get('/@:user/publickey', withUser(username => {
|
||||
return `${config.url}/@${username}/publickey`;
|
||||
|
@ -11,8 +11,7 @@ const respond = withUser(username => `${config.url}/@${username}`, (user, req, r
|
||||
res.json(rendered);
|
||||
});
|
||||
|
||||
const app = express();
|
||||
app.disable('x-powered-by');
|
||||
const app = express.Router();
|
||||
|
||||
app.get('/@:user', (req, res, next) => {
|
||||
const accepted = req.accepts(['html', 'application/activity+json', 'application/ld+json']);
|
||||
|
Loading…
Reference in New Issue
Block a user