You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Burl%7D?q=api&page=61&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 19720 results for "api"(1312ms)
16
17try {
18const response = await fetch('/api/game', {
19method: 'POST',
20headers: {
47const moveData: MoveRequest = { position };
48
49const response = await fetch(`/api/game/${game.id}/move`, {
50method: 'PUT',
51headers: {
14await runMigrations();
1516// API routes
17app.route("/api/game", gameRoutes);
1819// Serve static files