@@ -468,7 +468,7 @@ public TipModel GetTip()
468468 /// <returns>The receipt for the smart contract.</returns>
469469 /// <response code="200">Returns transaction receipt</response>
470470 /// <response code="400">Transaction not found</response>
471- [ Route ( "api/[controller]/ receipt" ) ]
471+ [ Route ( "receipt" ) ]
472472 [ HttpGet ]
473473 [ ProducesResponseType ( ( int ) HttpStatusCode . OK ) ]
474474 [ ProducesResponseType ( ( int ) HttpStatusCode . BadRequest ) ]
@@ -511,7 +511,7 @@ public ReceiptResponse GetReceiptAPI([FromQuery] string txHash)
511511 /// <response code="200">Returns call response</response>
512512 /// <response code="400">Invalid request</response>
513513 /// <response code="500">Unable to deserialize method parameters</response>
514- [ Route ( "api/[controller]/ local-call" ) ]
514+ [ Route ( "local-call" ) ]
515515 [ HttpPost ]
516516 [ ProducesResponseType ( ( int ) HttpStatusCode . OK ) ]
517517 [ ProducesResponseType ( ( int ) HttpStatusCode . BadRequest ) ]
@@ -565,43 +565,43 @@ public IActionResult LocalCallSmartContractTransaction([FromBody] LocalCallContr
565565 /// <param name="toBlock">The block number where searching finishes.</param>
566566 ///
567567 /// <returns>A list of receipts for transactions relating to a specific smart contract and a specific event in that smart contract.</returns>
568- [ Route ( "api/[controller]/ receipt-search" ) ]
568+ [ Route ( "receipt-search" ) ]
569569 [ HttpGet ]
570570 public async Task < List < ReceiptResponse > > ReceiptSearchAPI ( [ FromQuery ] string contractAddress , [ FromQuery ] string eventName , [ FromQuery ] List < string > topics = null , [ FromQuery ] int fromBlock = 0 , [ FromQuery ] int ? toBlock = null )
571571 {
572572 List < ReceiptResponse > result = this . smartContractTransactionService . ReceiptSearch ( contractAddress , eventName , topics , fromBlock , toBlock ) ;
573573
574574 return result ;
575575 }
576-
577- [ Route ( "api/[controller]/watch_nft_contract " ) ]
576+
577+ [ Route ( "watch-nft-contract " ) ]
578578 [ HttpGet ]
579579 [ ProducesResponseType ( ( int ) HttpStatusCode . OK ) ]
580580 [ ProducesResponseType ( ( int ) HttpStatusCode . BadRequest ) ]
581581 public void WatchNFTContract ( [ FromQuery ] string contractAddress )
582582 {
583583 this . NFTTransferIndexer . WatchNFTContract ( contractAddress ) ;
584584 }
585-
586- [ Route ( "api/[controller]/get_watched_nft_contracts " ) ]
585+
586+ [ Route ( "get-watched-nft-contracts " ) ]
587587 [ HttpGet ]
588588 [ ProducesResponseType ( ( int ) HttpStatusCode . OK ) ]
589589 [ ProducesResponseType ( ( int ) HttpStatusCode . BadRequest ) ]
590590 public List < string > GetWatchedNFTContracts ( )
591591 {
592592 return this . NFTTransferIndexer . GetWatchedNFTContracts ( ) ;
593593 }
594-
595- [ Route ( "api/[controller]/get_owned_nfts " ) ]
594+
595+ [ Route ( "get-owned-nfts " ) ]
596596 [ HttpGet ]
597597 [ ProducesResponseType ( ( int ) HttpStatusCode . OK ) ]
598598 [ ProducesResponseType ( ( int ) HttpStatusCode . BadRequest ) ]
599599 public OwnedNFTsModel GetOwnedNFTs ( [ FromQuery ] string ownerAddress )
600600 {
601601 return this . NFTTransferIndexer . GetOwnedNFTs ( ownerAddress ) ;
602602 }
603-
604- [ Route ( "api/[controller]/get_all_nft_owners_by_contract_address " ) ]
603+
604+ [ Route ( "get-all-nft-owners-by-contract-address " ) ]
605605 [ HttpGet ]
606606 [ ProducesResponseType ( ( int ) HttpStatusCode . OK ) ]
607607 [ ProducesResponseType ( ( int ) HttpStatusCode . BadRequest ) ]
0 commit comments