Skip to content

Commit

Permalink
Merge branch 'main' into implement_aws_deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimagaa committed Nov 22, 2023
2 parents cbf3841 + f8af4fc commit 625fbc0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.app.botblend.contoller;

import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "Healthcheck endpoint",
description = "Healthcheck controller for reporting the health of app")
@RestController
@RequestMapping("/healthcheck")
public class HealthcheckController {
@GetMapping
public String check() {
return "The Botblend API is running stably";
}
}
6 changes: 3 additions & 3 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
spring.datasource.url=jdbc:postgresql://localhost:5432/botblend
spring.datasource.username=postgres
spring.datasource.password=test1234
spring.datasource.url=${DATABASE_URL}
spring.datasource.username=${DATABASE_USERNAME}
spring.datasource.password=${DATABASE_PASSWORD}

spring.jpa.hibernate.ddl-auto=validate
spring.jpa.open-in-view=false
Expand Down

0 comments on commit 625fbc0

Please sign in to comment.