1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

minor example fixes

Former-commit-id: 163652ddfad00300590fbe6798cf9761a8e4b5e6
This commit is contained in:
Gerasimos (Makis) Maropoulos
2019-07-09 12:25:06 +03:00
parent 450f20902d
commit 2567ed22be
2 changed files with 3 additions and 3 deletions

View File

@@ -68,7 +68,7 @@ func main() {
// serves the endpoint of ws://localhost:8080/echo
websocketRoute := app.Get("/echo", websocket.Handler(websocketServer))
j.Get()
if enableJWT {
// Register the jwt middleware (on handshake):
websocketRoute.Use(j.Serve)