chat worksgit add .!

This commit is contained in:
emil28092005
2026-01-08 00:10:58 +03:00
parent 48d5e396d7
commit 04646192bc
3 changed files with 99 additions and 1 deletions
+4
View File
@@ -22,5 +22,9 @@ func main() {
router.GET("/api/rooms", func(c *gin.Context) {
c.JSON(200, gin.H{"rooms": "TODO"})
})
router.Static("/static", "./static")
router.GET("/", func(c *gin.Context) {
c.File("./static/index.html")
})
router.Run(":8080")
}
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -39,6 +39,6 @@
<button onclick="sendMessage()">Send</button>
</div>
<script src="js/chat.js"></script>
<script src="/static/js/chat.js"></script>
</body>
</html>