Skip to content

Commit

Permalink
Finally deprecating the rest of NFT endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
zer0stars committed Sep 16, 2024
1 parent fdce3a5 commit de92092
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 380 deletions.
10 changes: 0 additions & 10 deletions cmd/devices-api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,16 +171,6 @@ func startWebAPI(logger zerolog.Logger, settings *config.Settings, pdb db.Store,
v1.Get("/swagger/*", swagger.HandlerDefault)
// Device Definitions
nftController := controllers.NewNFTController(settings, pdb.DBS, &logger, s3NFTServiceClient, ddSvc, scTaskSvc, teslaTaskService, ddIntSvc, ddaSvc, ipfsSvc)
v1.Get("/vehicle/:tokenID", nftController.GetNFTMetadata)
v1.Get("/vehicle/:tokenID/image", nftController.GetNFTImage)

v1.Get("/aftermarket/device/by-address/:address", nftController.GetAftermarketDeviceNFTMetadataByAddress)
v1.Get("/aftermarket/device/:tokenID", cacheHandler, nftController.GetAftermarketDeviceNFTMetadata)
v1.Get("/aftermarket/device/:tokenID/image", nftController.GetAftermarketDeviceNFTImage)

v1.Get("/synthetic/device/:tokenID", nftController.GetSyntheticDeviceNFTMetadata)

v1.Get("/integration/:tokenID", nftController.GetIntegrationNFTMetadata)

v1.Get("/countries", countriesController.GetSupportedCountries)
v1.Get("/countries/:countryCode", countriesController.GetCountry)
Expand Down
Loading

1 comment on commit de92092

@elffjs
Copy link
Member

@elffjs elffjs commented on de92092 Sep 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to regenerate Swagger.

Please sign in to comment.