Skip to content

Commit 289ff1e

Browse files
henrybarretogustavosbarreto
authored andcommitted
fix(ssh): add api prefix on route to close ssh session
1 parent ea5d20f commit 289ff1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ssh/pkg/tunnel/tunnel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func NewTunnel(connection, dial, redisURI string) (*Tunnel, error) {
122122

123123
// `/sessions/:uid/close` is the endpoint that is called by the agent to inform the SSH's server that the session is
124124
// closed.
125-
tunnel.router.POST("/sessions/:uid/close", func(c echo.Context) error {
125+
tunnel.router.POST("/api/sessions/:uid/close", func(c echo.Context) error {
126126
var data struct {
127127
UID string `param:"uid"`
128128
Device string `json:"device"`

0 commit comments

Comments
 (0)