forked from
rocksky.app/rocksky
A decentralized music tracking and discovery platform built on AT Protocol 馃幍
1import axios from "axios";
2import { API_URL } from "../consts";
3
4function useBeta() {
5 const joinBeta = async (email: string) => {
6 await axios.post(
7 `${API_URL}/spotify/join`,
8 {
9 email,
10 },
11 {
12 headers: {
13 authorization: `Bearer ${localStorage.getItem("token")}`,
14 },
15 }
16 );
17 };
18
19 return { joinBeta };
20}
21
22export default useBeta;