Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/$%7Bart_info.art.src%7D?q=api&page=67&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 15476 results for "api"(765ms)

myApi1 file match

@stevebennn•Updated 1 year ago

myApi1 file match

@alexw•Updated 1 year ago

myApi1 file match

@zpnichols•Updated 1 year ago

expressApiTest2 file matches

@z233•Updated 1 year ago

myApi1 file match

@iansavchenko•Updated 1 year ago

myApi1 file match

@morten_holm•Updated 1 year ago

myApi1 file match

@nickgehring•Updated 1 year ago

heapify1 file match

@aeschylus•Updated 1 year ago

myApi1 file match

@dabeeeenster•Updated 1 year ago

API_BASE_URL1 file match

@mangadex•Updated 1 year ago

Presentationsindex.ts5 matches

@wolf•Updated 44 mins ago
20app.get("/shared/*", c => serveFile(c.req.path, import.meta.url));
21
22// API Routes
23app.get("/api/presentations", async c => {
24 const presentations = await getPresentations();
25 return c.json(presentations);
26});
27
28app.post("/api/presentations", async c => {
29 const body = await c.req.json();
30 const { title, presenter } = body;
38});
39
40app.put("/api/presentations/:id", async c => {
41 const id = c.req.param("id");
42 const body = await c.req.json();
51});
52
53app.delete("/api/presentations/:id", async c => {
54 const id = c.req.param("id");
55 await deletePresentation(parseInt(id));

PresentationsAddPresentation.tsx1 match

@wolf•Updated 44 mins ago
37
38 try {
39 const response = await fetch('/api/presentations', {
40 method: 'POST',
41 headers: {
Kapil01
apiv1