add fm api (#456)

This commit is contained in:
UUBulb
2024-10-25 09:09:08 +08:00
committed by GitHub
parent fa9d02396b
commit d086e98711
7 changed files with 112 additions and 5 deletions

View File

@@ -65,8 +65,8 @@ func createTerminal(c *gin.Context) (*model.CreateTerminalResponse, error) {
// @Summary Terminal stream
// @Description Terminal stream
// @Tags auth required
// @Param id path string true "Stream ID"
// @Router /terminal/{id} [get]
// @Param id path string true "Stream UUID"
// @Router /ws/terminal/{id} [get]
func terminalStream(c *gin.Context) (any, error) {
streamId := c.Param("id")
if _, err := rpc.NezhaHandlerSingleton.GetStream(streamId); err != nil {