summaryrefslogtreecommitdiff
path: root/main.go
blob: 9ab2ae95b40eca2f39ef0dca77a8052cff54802b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package main

import (
	"fmt"
	"net/http"
	"os"

	endpoints "physick.ru/culture_exam/Endpoints"
	settings "physick.ru/culture_exam/Settings"
)

func main() {
	settings.ReadSettings()
	endpoints.RegisterEndpoints()
	http.Handle("/",  http.FileServer(http.FS(os.DirFS("./static"))))
	var _, _ = endpoints.GetAvaliableSongs()
	fmt.Println(settings.Current)

	http.ListenAndServe(":6969", nil)
}