mirror of
https://github.com/emo2007/block-accounting.git
synced 2025-01-18 15:36:27 +00:00
fix
This commit is contained in:
parent
5f97b641c0
commit
747bcf5be6
@ -1,4 +1,4 @@
|
|||||||
import { Body, Controller, Get, Param } from '@nestjs/common';
|
import { Body, Controller, Get, Param, Post } from '@nestjs/common';
|
||||||
import { EthereumService } from './ethereum.service';
|
import { EthereumService } from './ethereum.service';
|
||||||
import { ApiTags } from '@nestjs/swagger';
|
import { ApiTags } from '@nestjs/swagger';
|
||||||
import { GetSeedPhraseDto } from './ethereum.dto';
|
import { GetSeedPhraseDto } from './ethereum.dto';
|
||||||
@ -13,7 +13,7 @@ export class EthereumController {
|
|||||||
return this.ethereumService.getAddressFromPrivateKey(privateKey);
|
return this.ethereumService.getAddressFromPrivateKey(privateKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Get('/address-from-seed/:seedPhrase')
|
@Post('/address-from-seed/:seedPhrase')
|
||||||
async getAddressFromSeedPhrase(@Body() body: GetSeedPhraseDto) {
|
async getAddressFromSeedPhrase(@Body() body: GetSeedPhraseDto) {
|
||||||
return this.ethereumService.getAddressFromSeedPhrase(body.seedPhrase);
|
return this.ethereumService.getAddressFromSeedPhrase(body.seedPhrase);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user