This commit is contained in:
syuilo
2018-04-05 17:52:46 +09:00
parent d3ed2761b9
commit f5c55d46b7
5 changed files with 5 additions and 11 deletions

View File

@@ -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']);