Swagger doc is now included in the application. A fronted can now be hosted from the application.
21 lines
240 B
Go
21 lines
240 B
Go
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()
|
|
}
|