Changed routing framework from mux to Gin.

Swagger doc is now included in the application.
A fronted can now be hosted from the application.
This commit is contained in:
Sansan committed 2022-01-29 17:52:33 +01:00
1 parent 512fcd0c4f
commit f9d6c24a97
43 files changed
+28748 -198

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
package main
import (
"embed"
"music-server/pkg/conf"
)
//go:embed frontend/dist
var frontend embed.FS
//go:embed swagger
var swagger embed.FS
func main() {
conf.SetupDb()
conf.SetupRestServer(frontend, swagger)
conf.CloseDb()
}