i think that's all the api endpoints!

Signed-off-by: ari melody <ari@arimelody.me>
This commit is contained in:
ari melody 2024-08-03 23:24:15 +01:00
parent 494b29def3
commit 05e16a0867
17 changed files with 810 additions and 231 deletions

View file

@ -1,8 +1,8 @@
package music
import (
"arimelody.me/arimelody.me/music/model"
"github.com/jmoiron/sqlx"
"arimelody.me/arimelody.me/music/model"
"github.com/jmoiron/sqlx"
)
// DATABASE
@ -12,7 +12,7 @@ func PullReleaseLinks(db *sqlx.DB, releaseID string) ([]*model.Link, error) {
err := db.Select(
&links,
"SELECT * FROM musiclink WHERE release=$1",
"SELECT name, url FROM musiclink WHERE release=$1",
releaseID,
)
if err != nil {