|
|
@ -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) => { |
|
|
router.post('/micropub', async (ctx, next) => { |
|
|
|
|
|
console.log('Handling Micropub request'); |
|
|
const resp = await fetch('https://tokens.indieauth.com/token', { |
|
|
const resp = await fetch('https://tokens.indieauth.com/token', { |
|
|
method: 'GET', |
|
|
method: 'GET', |
|
|
headers: { |
|
|
headers: { |
|
|
|