Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit 92362cc

Browse files
committed
feat: add /gateway endpoint
1 parent 161d703 commit 92362cc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

polyproto/core/routes/main.tsp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,14 @@ enum Version {
2828
`v1.0-beta.3`,
2929
`v1.0-beta.4`,
3030
}
31+
32+
/**
33+
* Retrieve the URL of the gateway server to connect to.
34+
*/
35+
@route("/gateway")
36+
@added(Version.`v1.0-beta.4`)
37+
@summary("Get the gateway server URL")
38+
op gatewayUrl(): {
39+
@body _: url;
40+
@statusCode statusCode: 200;
41+
};

0 commit comments

Comments
 (0)