Skip to content

Commit

Permalink
server configs
Browse files Browse the repository at this point in the history
  • Loading branch information
crizzzly committed Jan 5, 2025
1 parent 1e3ba31 commit 7512eb2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,12 @@ class SportController {
return ResponseEntity.ok(sportService.getAllSports())
}


// TODO: An error occurred: No static resource sports/get-all-by-ids/1,2
@GetMapping("/get-all-by-ids/{ids}")
fun getSportsByIds(@PathVariable("ids") ids: List<Int>): ResponseEntity<MutableList<SportResponseDTO>> {
println("getSportsByIds Request: $ids")
println("dataType ${ids.javaClass}")
val sports = mutableListOf<SportResponseDTO>();
ids.map{ id ->
val sport = sportService.getSportById(id)
Expand Down
8 changes: 6 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ spring:
web-application-type: servlet
datasource:
url: jdbc:postgresql://${DB_HOST}:${DB_PORT}/${DB_NAME}
username: chrissi-dev
password: BrowsePostgresInSpace
username: ${DB_USER}
password: ${DB_PASSWD}
jpa:
show-sql: true
hibernate.ddl-auto: 'update' # update #create-drop
Expand All @@ -21,6 +21,10 @@ spring:
favicon:
enabled=false
# TODO: Create Favicon
server:
address: 0.0.0.0 # Listens on all network interfaces
port: 8080 # Optional: Define the port explicitly

jakarta:
persistence:
jdbc:
Expand Down

0 comments on commit 7512eb2

Please sign in to comment.