Skip to content

Commit

Permalink
release: 0.0.6 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb authored Apr 11, 2024
2 parents 721ce68 + 304aea8 commit 32a0235
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ jobs:
run: |
sudo docker pull ghcr.io/devxb/gitanimals:${{ steps.extract_version_name.outputs.version }}
sudo docker ps -q --filter "expose=8080" | xargs sudo docker stop | xargs sudo docker rm
sudo docker run -d -p 8080:8080 ghcr.io/devxb/gitanimals:${{ steps.extract_version_name.outputs.version }}
sudo docker run -d -p 8081:8080 ghcr.io/devxb/gitanimals:${{ steps.extract_version_name.outputs.version }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
์•„๋ž˜์˜ MARKDOWN ํ˜น์€ HTML ๋ฐฉ์‹์ค‘ ํ•˜๋‚˜๋ฅผ ๋ถ™์—ฌ๋„ฃ๊ธฐ ํ•˜๋Š”๊ฒƒ์œผ๋กœ ์‰ฝ๊ฒŒ ์ ์šฉํ•  ์ˆ˜ ์žˆ์–ด์š”.

```markdown
[![gitanimals](http://render.gitanimals.org/farms/{username})](https://github.com/devxb/gitanimals)
[![gitanimals](https://render.gitanimals.org/farms/{username})](https://github.com/devxb/gitanimals)
```

```html
Expand Down Expand Up @@ -59,7 +59,7 @@

### ๋“ฑ์žฅ ๊ฐ€๋Šฅํ•œ ํŽซ๋“ค

<img src="docs/pets.svg"/>
<img alt="docs/pets.svg" src="https://render.gitanimals.org/farms/devxb"/>

##

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package org.gitanimals.render.controller

import jakarta.servlet.http.HttpServletResponse
import org.gitanimals.render.app.AnimationFacade
import org.springframework.http.HttpHeaders
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestMapping
Expand All @@ -13,7 +16,8 @@ class AnimationController(
) {

@GetMapping(value = ["/{username}"], produces = ["image/svg+xml"])
fun getSvgAnimation(@PathVariable("username") username: String): String {
fun getSvgAnimation(@PathVariable("username") username: String, response: HttpServletResponse): String {
response.setHeader(HttpHeaders.CACHE_CONTROL, "max-age=1")
return animationFacade.getSvgAnimationByUsername(username)
}
}

0 comments on commit 32a0235

Please sign in to comment.