import * as express from "express" ; import { TransactionController } from "../controllers/TransactionController" ; import { TokenController } from "../controllers/TokenController" ; import { StatusController } from "../controllers/StatusController" ; import { Pusher } from "../controllers/PusherController" ; import { DeviceRegistration } from "../controllers/DeviceRegistrationController" ; import { PriceController } from "../controllers/PriceController" ; import { TokenPriceController } from "../controllers/TokenPriceController" ; import { AssetsController } from "../controllers/AssestsController" ; const router = express . Router ( ) ; const transactionController = new TransactionController ( ) ; const tokenController = new TokenController ( ) ; const statusController = new StatusController ( ) ; const pusherController = new Pusher ( ) ; const deviceRegistration = new DeviceRegistration ( ) ; const priceController = new PriceController ( ) ; const tokenPriceController = new TokenPriceController ( ) ; const assetsController = new AssetsController ( ) ; router . get ( "/" , statusController . getStatus ) ; router . get ( "/transactions" , transactionController . readAllTransactions ) ; router . get ( "/transactions/:transactionId" , transactionController . readOneTransaction ) ; router . get ( "/tokens" , tokenController . readAllTokens ) ; router . get ( "/tokens/list" , tokenController . listTokens ) ; router . get ( "/tokens/list/new" , tokenController . listTokensNew ) ; router . get ( "/tokens/:address" , tokenController . readOneToken ) ; router . get ( "/tokenInfo/:tokenAddress" , tokenController . readTokenInfo ) ; router . post ( "/push/register" , deviceRegistration . register ) ; router . delete ( "/push/unregister" , pusherController . unregister ) ; router . post ( "/push/unregister" , deviceRegistration . unregister ) ; router . get ( "/prices" , priceController . getPrices ) ; router . post ( "/tokenPrices" , tokenPriceController . getTokenPrices ) ; router . get ( "/assets" , assetsController . getAssets ) ; export { router } ;