queues-go/main.go
Egor Matveev c2659fb49c initial
2024-12-31 00:53:40 +03:00

16 lines
313 B
Go

package main
import (
"net/http"
"queues-go/app/routers"
client "queues-go/app/storage/mongo"
)
func main() {
client.Connect()
http.HandleFunc("/api/v1/take", routers.Take)
http.HandleFunc("/api/v1/finish", routers.Finish)
http.HandleFunc("/api/v1/put", routers.Put)
http.ListenAndServe(":1239", nil)
}