Download api/src/router/walletRouter.ts from Jessedbrown/warran: direct link, hf CLI and curl.
- Browser
- Download file 279 Bytes
-
https://huggingface.co/Jessedbrown/warran/resolve/main/api/src/router/walletRouter.ts
- Command line
-
hf download hf://Jessedbrown/warran/api/src/router/walletRouter.ts
-
curl -L -o walletRouter.ts https://huggingface.co/Jessedbrown/warran/resolve/main/api/src/router/walletRouter.ts
279 Bytes
| import express from 'express' | |
| import { WalletController } from '../controller' | |
| export const walletRouter = express.Router() | |
| const controller = new WalletController() | |
| walletRouter.get('/:user_id', controller.getStatement); | |
| walletRouter.post('/', controller.handleTransaction); | |