mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 03:47:40 -07:00
temp test
This commit is contained in:
parent
1024e4d027
commit
9703b2496f
1 changed files with 2 additions and 1 deletions
|
@ -146,7 +146,8 @@ router.post("/oauth/token", koaBody({
|
|||
multipart: true
|
||||
}), async (ctx) => {
|
||||
const body: any = ctx.request.body;
|
||||
const BASE_URL = `${ctx.request.protocol}://${ctx.request.hostname}`;
|
||||
//const BASE_URL = `${ctx.request.protocol}://${ctx.request.hostname}`;
|
||||
const BASE_URL = "http://localhost:3000";
|
||||
const generator = (megalodon as any).default;
|
||||
const client = generator('misskey', BASE_URL, null) as MegalodonInterface;
|
||||
const m = body.code.match(/^[a-zA-Z0-9-]+/);
|
||||
|
|
Loading…
Reference in a new issue