diff --git a/app.js b/app.js index c4685e0..4658251 100644 --- a/app.js +++ b/app.js @@ -54,7 +54,12 @@ async function appendNote(content) { }); } +router.post('/indie_ticket', async (ctx, next) => { + console.log(JSON.stringify({ticket: ctx.request.body}, null, 2)); +}); + router.post('/micropub', async (ctx, next) => { + console.log('Handling Micropub request'); const resp = await fetch('https://tokens.indieauth.com/token', { method: 'GET', headers: { diff --git a/static/index.html b/static/index.html index a774ef3..1e73013 100644 --- a/static/index.html +++ b/static/index.html @@ -1,10 +1,10 @@ Notes - - - + + +