Skip to content
⌘K
Explore
Download
Docs
Sign in
Sign up
flagon-io
/
lab-api
public
Star
0
Overview
Code
Issues
Pull requests
2
Agents
Workflows
Deployments
Insights
Files
Commits
Branches
Tags
Releases
Compare
Commit
A tiny API
syntaqx
committed
7d ago
The first commit
Browse files
8e500b17402e
2
files
+13
−0
0/2 viewed
Files
Collapse all
Unified
Split
src/index.js
+7
−0
View
Blame
Viewed
1
+
// Says which deployment answered, so a project that depends on this one
2
+
// can show which of its addresses it was given.
3
+
export default {
4
+
fetch(request) {
5
+
return Response.json({ service: "lab-api", version: "v1", host: new URL(request.url).hostname });
6
+
},
7
+
};
wrangler.jsonc
+6
−0
View
Blame
Viewed
1
+
{
2
+
// A tiny API, so another project can depend on it.
3
+
"name": "lab-api",
4
+
"main": "src/index.js",
5
+
"compatibility_date": "2026-09-26"
6
+
}