Redesigned history-related APIs to streamline handling of user and UUID punishments, moving from POST to GET endpoints. Added support for LiteBans database with mappers for retrieving punishment records by name and UUID, and implemented global exception handling for better error reporting. Updated schema paths and added enums (UserType, HistoryType) and a new Gradle dependency.
17 lines
303 B
Java
17 lines
303 B
Java
package com.alttd.altitudeweb.database;
|
|
|
|
import lombok.Getter;
|
|
|
|
@Getter
|
|
public enum Databases {
|
|
DEFAULT("web_db"),
|
|
LUCK_PERMS("luckperms"),
|
|
LITE_BANS("litebans");
|
|
|
|
private final String internalName;
|
|
|
|
Databases(String internalName) {
|
|
this.internalName = internalName;
|
|
}
|
|
}
|