Disabling completely routes if admin token not configured
This commit is contained in:
@@ -81,6 +81,9 @@ class AdminApi {
|
||||
reporterUserUuid: string,
|
||||
reportWorldSlug: string
|
||||
) {
|
||||
if (!ADMIN_API_URL) {
|
||||
return Promise.reject(new Error("No admin backoffice set!"));
|
||||
}
|
||||
return Axios.post(
|
||||
`${ADMIN_API_URL}/api/report`,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user