cleanups
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
package stirling.software.SPDF.controller.api.pipeline;
|
||||
public interface UserServiceInterface {
|
||||
// Define methods that you need
|
||||
String getApiKeyForUser(String username);
|
||||
}
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
package stirling.software.SPDF.controller.api.pipeline;
|
||||
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.context.annotation.Profile;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
@ConditionalOnProperty(name = "DOCKER_ENABLE_SECURITY", havingValue = "false")
|
||||
public class UserServiceNoOpImpl implements UserServiceInterface {
|
||||
// Implement the methods with no-op
|
||||
@Override
|
||||
public String getApiKeyForUser(String username) {
|
||||
// No-op implementation
|
||||
return "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user