POST /api/login– Exchange a Discord OAuth2 code for tokens. RequirescodeandredirectUriin the request body.GET /api/bot/guilds– Returns guilds the bot is in. Requires the bot token via environment variable.
- Copy
.env.exampleto.envand fill in your Discord and Spotify credentials. - Run
docker-compose up --buildto build and start the API server.
The API will be available on the port specified in API_PORT (defaults to 3000).