Skip to content

Commit 3f31983

Browse files
authored
Merge pull request #66 from TAMULib/sprint6-staging-fixes
fixed status controller, clean up properties
2 parents 28575f5 + feb6edd commit 3f31983

3 files changed

Lines changed: 11 additions & 17 deletions

File tree

src/main/java/edu/tamu/app/controller/StatusController.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
import org.springframework.web.bind.annotation.RestController;
99

1010
import edu.tamu.app.service.MonitorService;
11-
import edu.tamu.weaver.auth.annotation.WeaverCredentials;
12-
import edu.tamu.weaver.auth.model.Credentials;
1311
import edu.tamu.weaver.response.ApiResponse;
1412

1513
@RestController
@@ -21,13 +19,13 @@ public class StatusController {
2119

2220
@RequestMapping("/overall-full")
2321
@PreAuthorize("hasRole('STAFF')")
24-
public ApiResponse overallFull(@WeaverCredentials Credentials credentials) {
22+
public ApiResponse overallFull() {
2523
return new ApiResponse(SUCCESS, monitorService.getOverallStatus());
2624
}
2725

2826
@RequestMapping("/overall-public")
2927
@PreAuthorize("hasRole('ANONYMOUS')")
30-
public ApiResponse overallPublic(@WeaverCredentials Credentials credentials) {
28+
public ApiResponse overallPublic() {
3129
return new ApiResponse(SUCCESS, monitorService.getOverallStatusPublic());
3230
}
3331

src/main/resources/application.properties

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ security.basic.enabled: false
66

77
spring.template.cache: false
88

9-
spring.profiles.active: production
9+
spring.profiles.active: default
1010

1111
spring.datasource.username: spring
1212
spring.datasource.password: spring
@@ -29,10 +29,8 @@ spring.jpa.hibernate.ddl-auto: create-drop
2929

3030

3131
# logging
32-
logging.level.org.tdl: INFO
3332
logging.level.edu.tamu: INFO
34-
logging.level.org.springframework:INFO
35-
logging.level.ro.isdc.wro: INFO
33+
logging.level.org.springframework: INFO
3634

3735
logging.file: logs/lsss.log
3836

@@ -74,19 +72,19 @@ app.security.secret: verysecretsecret
7472

7573
################################################################
7674
# edu.tamu.weaver.filter.CorsFilter
77-
app.security.allow-access: http://localhost,http://localhost:${server.port},http://laddusaw.tamu.edu,http://laddusaw.tamu.edu:${server.port},http://janus.evans.tamu.edu,http://janus.evans.tamu.edu:${server.port}
75+
app.security.allow-access: http://localhost,http://laddusaw.tamu.edu,http://janus.evans.tamu.edu,http://muninn.evans.tamu.edu:8080
7876
################################################################
7977

8078
################################################################
8179
# edu.tamu.weaver.email.config.WeaverEmailConfig
8280
app.email.host: relay.tamu.edu
8381
app.email.from: noreply@library.tamu.edu
84-
app.email.replyTo: dev@library.tamu.edu
82+
app.email.replyTo: helpdesk@library.tamu.edu
8583
################################################################
8684

8785
################################################################
8886
# edu.tamu.weaver.reporting.controller.ReportingController
89-
app.reporting.address: dev@tdl.org
87+
app.reporting.address: helpdesk@library.tamu.edu
9088
################################################################
9189

9290
################################################################

src/test/resources/application.properties

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ spring.jpa.hibernate.ddl-auto: create-drop
2323

2424

2525
# logging
26-
logging.level.org.tdl: INFO
2726
logging.level.edu.tamu: INFO
28-
logging.level.org.springframework:INFO
29-
logging.level.ro.isdc.wro: INFO
27+
logging.level.org.springframework: INFO
3028

3129
logging.file: logs/lsss.log
3230

@@ -67,19 +65,19 @@ app.security.secret: verysecretsecret
6765

6866
################################################################
6967
# edu.tamu.weaver.filter.CorsFilter
70-
app.security.allow-access: http://localhost,http://localhost:9000,http://laddusaw.tamu.edu,http://laddusaw.tamu.edu:9000,http://janus.evans.tamu.edu,http://janus.evans.tamu.edu:9000
68+
app.security.allow-access: http://localhost,http://laddusaw.tamu.edu,http://janus.evans.tamu.edu,http://muninn.evans.tamu.edu:8080
7169
################################################################
7270

7371
################################################################
7472
# edu.tamu.weaver.email.config.WeaverEmailConfig
7573
app.email.host: relay.tamu.edu
7674
app.email.from: noreply@library.tamu.edu
77-
app.email.replyTo: dev@library.tamu.edu
75+
app.email.replyTo: helpdesk@library.tamu.edu
7876
################################################################
7977

8078
################################################################
8179
# edu.tamu.weaver.reporting.controller.ReportingController
82-
app.reporting.address: dev@tdl.org
80+
app.reporting.address: helpdesk@library.tamu.edu
8381
################################################################
8482

8583
################################################################

0 commit comments

Comments
 (0)