Skip to content
⌘K
Explore
Download
Docs
Sign in
Sign up
flagon-io
/
lab-api
public
A tiny API for testing project dependencies
Star
0
Overview
Code
Issues
Pull requests
2
Agents
Workflows
Deployments
Insights
Pull requests
Merge queue
v2 of the API
#1
Open
s
syntaqx
wants to merge
v2
into
main
Conversation
Session
Files changed
1
+1
−1
1
file
+1
−1
0/1 viewed
Collapse all
Unified
Split
src/index.js
+1
−1
Viewed
2
2
// can show which of its addresses it was given.
3
3
export
default
{
4
4
fetch
(
request
)
{
5
−
return
Response
.
json
({
service
:
"
lab-api
"
,
version
:
"
v1
"
,
host
:
new
URL
(
request
.
url
).
hostname
});
5
+
return
Response
.
json
({
service
:
"
lab-api
"
,
version
:
"
v2
"
,
host
:
new
URL
(
request
.
url
).
hostname
});
6
6
},
7
7
};