Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions backend/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import {
handleVerifySignature,
} from "./lib/transaction-signer.js";
import { versionDeprecationMiddleware } from "./lib/version-deprecation.js";
import oracleRouter from "./routes/oracle.js";

export async function createApp({ redisClient }) {
const app = express();
Expand Down Expand Up @@ -337,6 +338,9 @@ export async function createApp({ redisClient }) {
// x402 pay-per-request verification (public — agents call this)
app.use("/api", x402Router);

// Smart Contract Oracle Integrator endpoints
app.use("/", oracleRouter);

// Sentry error handler — must come after all routes, before custom error handler
setupSentryErrorHandler(app);

Expand Down
Loading
Loading