summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/main.go b/main.go
new file mode 100644
index 0000000..72e796f
--- /dev/null
+++ b/main.go
@@ -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)
+}