mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-23 15:44:51 +01:00
remove old api docs
This commit is contained in:
@@ -27,20 +27,6 @@ func NewInvoiceStreamController(svc *service.LndhubService) *InvoiceStreamContro
|
||||
return &InvoiceStreamController{svc: svc}
|
||||
}
|
||||
|
||||
// StreamInvoices godoc
|
||||
// @Summary Websocket for incoming payments
|
||||
// @Description Websocket: won't work with Swagger web UI. Returns a stream of settled incoming payments.
|
||||
// @Description A keep-alive message is sent on startup and every 30s.
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Tags Invoice
|
||||
// @Param token query string true "Auth token, retrieved from /auth endpoint"
|
||||
// @Param since_payment_hash query string false "Payment hash of earliest invoice. If specified, missing updates starting from this payment will be sent."
|
||||
// @Success 200 {object} []InvoiceEventWrapper
|
||||
// @Failure 400 {object} responses.ErrorResponse
|
||||
// @Failure 500 {object} responses.ErrorResponse
|
||||
// @Router /invoices/stream [get]
|
||||
// @Security OAuth2Password
|
||||
func (controller *InvoiceStreamController) StreamInvoices(c echo.Context) error {
|
||||
userId, err := tokens.ParseToken(controller.svc.Config.JWTSecret, (c.QueryParam("token")), false)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user