diff options
| author | Physick <96335032+DegustatorPonos@users.noreply.github.com> | 2025-12-06 12:05:43 +0500 |
|---|---|---|
| committer | Physick <96335032+DegustatorPonos@users.noreply.github.com> | 2025-12-06 12:05:43 +0500 |
| commit | 5fd81183f54662fdf08549c0d635e80166c62fe9 (patch) | |
| tree | 0b730dd4f19c7446fabcc2ee7cc7313e94e67fe3 /main.go | |
initial endpoints
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -0,0 +1,19 @@ +package main + +import ( + "fmt" + "net/http" + "os" + + endpoints "physick.ru/culture_exam/Endpoints" + settings "physick.ru/culture_exam/Settings" +) + +func main() { + settings.ReadSettings() + fmt.Println(settings.Current) + endpoints.RegisterEndpoints() + http.Handle("/", http.FileServer(http.FS(os.DirFS("./static")))) + + http.ListenAndServe(":6969", nil) +} |
