You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/image-url.jpg%20%22Image%20title%22?q=api&page=41&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=api
Returns an array of strings in format "username" or "username/projectName"
Found 11798 results for "api"(989ms)
32});
3334// API endpoints
35app.post("/api/commits", async c => {
36const { token, repo, owner, startDate, endDate } = await c.req.json();
3755});
5657app.post("/api/generate-notes", async c => {
58const { commits } = await c.req.json();
597778// Create a shareable link
79app.post("/api/share", async c => {
80const data = await c.req.json() as CreateShareRequest;
81113114// Get shared release notes
115app.get("/api/share/:id", async c => {
116const id = c.req.param("id");
117
567const method = request.method;
568569// --- API Routes ---
570571// Login (UPDATED to use employees table and add logging)