init: 初始化 AssetX 项目仓库
包含 webapp(Next.js 用户端)、webapp-back(Go 后端)、 antdesign(管理后台)、landingpage(营销落地页)、 数据库 SQL 和配置文件。
This commit is contained in:
14
webapp-back/lending/routers.go
Normal file
14
webapp-back/lending/routers.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package lending
|
||||
|
||||
// Routing is now handled in main.go
|
||||
// All lending routes are registered directly in main.go:
|
||||
//
|
||||
// GET /api/lending/position/:address - Get user lending position
|
||||
// GET /api/lending/stats - Get lending market statistics
|
||||
// GET /api/lending/markets - Get lending markets configuration
|
||||
// POST /api/lending/supply - Supply USDC
|
||||
// POST /api/lending/withdraw - Withdraw USDC
|
||||
// POST /api/lending/supply-collateral - Supply collateral (YT tokens)
|
||||
// POST /api/lending/withdraw-collateral - Withdraw collateral
|
||||
// POST /api/lending/borrow - Borrow USDC
|
||||
// POST /api/lending/repay - Repay USDC
|
||||
Reference in New Issue
Block a user