[M] Rename: Bind -> Link

This commit is contained in:
Azalea
2024-02-22 18:19:55 -05:00
parent 49320ff623
commit a001a45cc4
6 changed files with 8 additions and 8 deletions

View File

@@ -42,8 +42,8 @@ class CardController(
* @param cardId Card ID
* @param migrate Things to migrate, stored as a comma-separated list of game IDs (e.g. "maimai2,chusan")
*/
@API("/bind")
suspend fun bind(@RP token: Str, @RP cardId: Str, @RP migrate: Str) = jwt.auth(token) { u ->
@API("/link")
suspend fun link(@RP token: Str, @RP cardId: Str, @RP migrate: Str) = jwt.auth(token) { u ->
// Check if the user's card limit is reached
if (u.cards.size >= props.linkCardLimit) 400 - "Card limit reached"

View File

@@ -48,5 +48,5 @@ class Card(
private val serialVersionUID = 1L
}
val isBound get() = aquaUser != null
val isLinked get() = aquaUser != null
}