This commit is contained in:
Eli Peter 2026-06-05 10:16:30 -05:00 committed by GitHub
parent 55247b7fcd
commit 991c84a1eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
1464 changed files with 225448 additions and 1985 deletions

View file

@ -0,0 +1,8 @@
Surface map
1 entry-point, 0 data stores, 0 external services, 0 dangerous locals
app.py
GET /users (Flask)
handler: list_users at app.py:7
reaches: (none)

View file

@ -0,0 +1,13 @@
package main
import "github.com/gin-gonic/gin"
func main() {
r := gin.Default()
r.GET("/users", listUsers)
r.Run()
}
func listUsers(c *gin.Context) {
c.JSON(200, []string{})
}

View file

@ -0,0 +1,12 @@
package main
import "net/http"
func main() {
http.HandleFunc("/users", listUsers)
http.ListenAndServe(":8080", nil)
}
func listUsers(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("[]"))
}

View file

@ -0,0 +1,17 @@
package com.example;
import io.quarkus.runtime.Quarkus;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
@ApplicationScoped
@Path("/api")
public class GreetResource {
@GET
@Path("/hello")
public String hello() {
return "hi";
}
}

View file

@ -0,0 +1,14 @@
package com.example;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
@Path("/users")
public class UserResource {
@GET
@Path("/{id}")
public String get() {
return "{}";
}
}

View file

@ -0,0 +1,11 @@
package com.example;
@RestController
@RequestMapping("/api")
public class UserController {
@GetMapping("/users")
public String list() {
return "[]";
}
}

View file

@ -0,0 +1,8 @@
const express = require("express");
const app = express();
app.get("/users", (req, res) => {
res.send("ok");
});
app.listen(3000);

View file

@ -0,0 +1,8 @@
const Router = require("@koa/router");
const router = new Router();
router.get("/users", async (ctx) => {
ctx.body = [];
});
module.exports = router;

View file

@ -0,0 +1,3 @@
<?php
Route::get('/users', 'UserController@index');

View file

@ -0,0 +1,3 @@
<?php
$app->get('/users', 'UsersController:list');

View file

@ -0,0 +1,10 @@
from django.urls import path
def admin_view(request):
return None
urlpatterns = [
path("admin/", admin_view),
]

View file

@ -0,0 +1,8 @@
from fastapi import FastAPI
app = FastAPI()
@app.get("/items")
def list_items():
return []

View file

@ -0,0 +1,8 @@
from flask import Flask
app = Flask(__name__)
@app.get("/users")
def list_users():
return "ok"

View file

@ -0,0 +1,9 @@
class UsersController < ApplicationController
def index
render json: []
end
def show
render json: {}
end
end

View file

@ -0,0 +1,5 @@
require 'sinatra'
get '/users' do
'[]'
end

View file

@ -0,0 +1,6 @@
use actix_web::{get, HttpResponse};
#[get("/users")]
async fn list_users() -> HttpResponse {
HttpResponse::Ok().finish()
}

View file

@ -0,0 +1,9 @@
use axum::{routing::get, Router};
async fn list_users() -> &'static str {
"[]"
}
fn app() -> Router {
Router::new().route("/users", get(list_users))
}

View file

@ -0,0 +1,3 @@
export async function GET(req: Request): Promise<Response> {
return new Response("ok");
}