planner/main.go

18 lines
280 B
Go
Raw Normal View History

2024-07-26 13:37:21 +02:00
package main
2024-08-21 16:35:44 +02:00
import (
"net/http"
"code.ewintr.nl/planner/handler"
"code.ewintr.nl/planner/storage"
)
2024-07-26 13:37:21 +02:00
func main() {
2024-08-21 16:35:44 +02:00
mem := storage.NewMemory()
http.HandleFunc("/", handler.Index)
http.HandleFunc("/sync", handler.NewSyncHandler(mem))
2024-08-22 07:18:50 +02:00
http.ListenAndServe(":8092", nil)
2024-07-26 13:37:21 +02:00
}