From 385156ae6424c2b68af526c02ccec9f5dfe90969 Mon Sep 17 00:00:00 2001 From: Benjamin Atkin Date: Sat, 10 Jul 2021 15:21:34 -0700 Subject: [PATCH] use main domain for auth; log for ticket endpoint --- app.js | 5 +++++ static/index.html | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) 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 - - - + + +