Compare commits
17 Commits
11e41deb92
...
a3abf726da
6
pom.xml
6
pom.xml
|
@ -2,7 +2,11 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>irish-monitor-service</artifactId>
|
||||
<<<<<<< HEAD
|
||||
<version>1.0.5-BETA-SNAPSHOT</version>
|
||||
=======
|
||||
<version>1.0.5-SNAPSHOT</version>
|
||||
>>>>>>> origin/master
|
||||
<packaging>war</packaging>
|
||||
<name>irish-monitor-service</name>
|
||||
<scm>
|
||||
|
@ -25,7 +29,7 @@
|
|||
<dependency> <!-- this dependency includes dependency to uoa-monitor-service-library -->
|
||||
<groupId>eu.dnetlib</groupId>
|
||||
<artifactId>uoa-monitor-service</artifactId>
|
||||
<version>1.1.11-BETA</version>
|
||||
<version>1.1.12-BETA</version>
|
||||
<classifier>library</classifier>
|
||||
</dependency>
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ import eu.dnetlib.irishmonitorservice.configuration.GlobalVars;
|
|||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.CrossOrigin;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
|
@ -26,7 +27,7 @@ public class IrishServiceCheckDeployController {
|
|||
return "Hello from irish-monitor-service!";
|
||||
}
|
||||
|
||||
// @PreAuthorize("hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN)")
|
||||
@PreAuthorize("hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN)")
|
||||
@RequestMapping(value = "/health_check/advanced", method = RequestMethod.GET)
|
||||
public Map<String, String> checkEverything() {
|
||||
Map<String, String> response = new HashMap<>();
|
||||
|
|
Loading…
Reference in New Issue