mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-04-28 06:19:46 +00:00
- Fixed proxyFetch regex incomplete escape - Updated contextManager regex to avoid Polynomial ReDoS (using [^]*?) - Removed redundant incomplete sanitization replace in page.tsx - Fixed perplexity-web missing flags (i) in regex and used [^]*? - Renamed callLogArtifact sha256 to artifactHash to fix false positive password hash alert
12 lines
485 B
JavaScript
12 lines
485 B
JavaScript
import { test } from "node:test";
|
|
import assert from "node:assert";
|
|
import { providerNodesValidateRoute } from "./src/app/api/provider-nodes/validate/route.js";
|
|
|
|
const req = new Request("http://localhost/api/provider-nodes/validate", {
|
|
method: "POST",
|
|
headers: { "Content-Type": "application/json" },
|
|
body: JSON.stringify({ baseUrl: "", apiKey: "" }),
|
|
});
|
|
const res = await providerNodesValidateRoute.POST(req);
|
|
const data = await res.json();
|
|
console.dir(data, { depth: null });
|