mirror of
https://github.com/syssecfsu/witty.git
synced 2024-12-25 04:02:36 +01:00
wip
This commit is contained in:
parent
11d1b2f185
commit
a56b48fc9f
@ -18,7 +18,7 @@
|
|||||||
<link rel="stylesheet" href="/assets/external/xterm.css" />
|
<link rel="stylesheet" href="/assets/external/xterm.css" />
|
||||||
<link rel="stylesheet" href="/assets/main.css" />
|
<link rel="stylesheet" href="/assets/main.css" />
|
||||||
|
|
||||||
<title>{{.title}}</title>
|
<title>WiTTY: {{.title}}</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
4
main.go
4
main.go
@ -49,7 +49,7 @@ func fillIndex(c *gin.Context) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
c.HTML(http.StatusOK, "index.html", gin.H{
|
c.HTML(http.StatusOK, "index.html", gin.H{
|
||||||
"title": "Interactive terminal",
|
"title": "interactive terminal",
|
||||||
"path": "/ws_do",
|
"path": "/ws_do",
|
||||||
"players": players,
|
"players": players,
|
||||||
})
|
})
|
||||||
@ -83,7 +83,7 @@ func main() {
|
|||||||
rt.GET("/view/:sname", func(c *gin.Context) {
|
rt.GET("/view/:sname", func(c *gin.Context) {
|
||||||
sname := c.Param("sname")
|
sname := c.Param("sname")
|
||||||
c.HTML(http.StatusOK, "term.html", gin.H{
|
c.HTML(http.StatusOK, "term.html", gin.H{
|
||||||
"title": "Viewer terminal",
|
"title": "viewer terminal",
|
||||||
"path": "/ws_view/" + sname,
|
"path": "/ws_view/" + sname,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user