Something went wrong. Try again.
A decentralized music tracking and discovery platform built on AT Protocol 🎵 forked from rocksky.app/rocksky
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031import axios from "axios";import { API_URL } from "../consts";
const headers = { authorization: `Bearer ${localStorage.getItem("token")}`,};export const joinBeta = async (email: string, platform: string) => { switch (platform) { case "spotify": return await axios.post( `${API_URL}/spotify/join`, { email }, { headers }, ); case "google": return await axios.post( `${API_URL}/googledrive/join`, { email }, { headers }, ); case "dropbox": return await axios.post( `${API_URL}/dropbox/join`, { email }, { headers }, ); default: return; }};