添加一个用于返回nft tokenURI json数据的接口

This commit is contained in:
zhl 2022-02-10 16:33:04 +08:00
parent 7ee2576267
commit c60154ad3c

View File

@ -109,4 +109,16 @@ class GameExtController extends BaseController {
await record.save()
return {}
}
@role('anon')
@router('get /api/svr/tmp/:nid')
async tmpNftJson(req: any) {
return {
name: 'NFT name',
description: 'NFT description',
image: 'https://www.cebg.games/img/n_miffy.d1d472aa.png',
strength: 20,
nt: 1,
}
}
}