mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 15:02:42 +01:00
music source and client for subsonic
test fixture setup for navidrome
This commit is contained in:
18
docker/library-manager/scripts/setup-servers.ts
Executable file
18
docker/library-manager/scripts/setup-servers.ts
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env -S deno --allow-all
|
||||
|
||||
async function setupNavidrome() {
|
||||
console.log("setting up navidrome...");
|
||||
|
||||
await fetch("http://navidrome:4533/auth/createAdmin", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({
|
||||
username: "admin",
|
||||
password: "password",
|
||||
}),
|
||||
});
|
||||
}
|
||||
|
||||
await setupNavidrome();
|
||||
|
||||
console.log("setup-servers complete");
|
||||
Reference in New Issue
Block a user