mirror of
https://github.com/trafficlunar/api.git
synced 2026-06-27 22:24:08 +00:00
feat: add lastfm route and workers
This commit is contained in:
parent
03d040a18d
commit
4fd340bf22
8 changed files with 128 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue