feat: add lastfm route and workers

This commit is contained in:
axolotlmaid 2024-09-25 19:56:34 +01:00
parent 03d040a18d
commit 4fd340bf22
8 changed files with 128 additions and 1 deletions

View file

@ -29,6 +29,8 @@ func NewRouter() {
r.Get("/visitor-counter", handler.HandleGetVisitorCounter)
r.Patch("/visitor-counter", handler.HandlePatchVisitorCounter)
r.Get("/currently-playing", handler.HandleGetCurrentlyPlaying)
slog.Info("Starting server", slog.Any("port", os.Getenv("PORT")))
http.ListenAndServe(":"+os.Getenv("PORT"), r)
}