添加一个用于返回nft tokenURI json数据的接口
This commit is contained in:
parent
7ee2576267
commit
c60154ad3c
@ -109,4 +109,16 @@ class GameExtController extends BaseController {
|
|||||||
await record.save()
|
await record.save()
|
||||||
return {}
|
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,
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user