Skip to content

Commit

Permalink
v0.2.1-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnyu committed Jun 11, 2024
1 parent ce7e365 commit 2478447
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions controllers/entriesController.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func GetPreviousEntry(c *gin.Context) {
return
}

c.Redirect(http.StatusPermanentRedirect, fmt.Sprintf("/entries/%s/show", prevEntryID))
c.Redirect(http.StatusTemporaryRedirect, fmt.Sprintf("/entries/%s/show", prevEntryID))
}

func GetNextEntry(c *gin.Context) {
Expand All @@ -118,7 +118,7 @@ func GetNextEntry(c *gin.Context) {
return
}

c.Redirect(http.StatusPermanentRedirect, fmt.Sprintf("/entries/%s/show", prevEntryID))
c.Redirect(http.StatusTempopraryRedirect, fmt.Sprintf("/entries/%s/show", prevEntryID))
}

func GetEntries(c *gin.Context) {
Expand Down Expand Up @@ -325,7 +325,7 @@ func DeleteEntry(c *gin.Context) {
return
}

c.Redirect(http.StatusPermanentRedirect, fmt.Sprintf("/accessions/%d/show", entry.AccessionID))
c.Redirect(http.StatusTemporaryRedirect, fmt.Sprintf("/accessions/%d/show", entry.AccessionID))

}

Expand Down
10 changes: 5 additions & 5 deletions controllers/userController.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func ResetPassword(c *gin.Context) {
return
}

c.Redirect(http.StatusPermanentRedirect, "/users")
c.Redirect(http.StatusTemporaryRedirect, "/users")
}

func DeactivateUser(c *gin.Context) {
Expand All @@ -197,7 +197,7 @@ func DeactivateUser(c *gin.Context) {
return
}

c.Redirect(http.StatusPermanentRedirect, "/users")
c.Redirect(http.StatusTemporaryRedirect, "/users")

}

Expand All @@ -221,7 +221,7 @@ func ReactivateUser(c *gin.Context) {
return
}

c.Redirect(http.StatusPermanentRedirect, "/users")
c.Redirect(http.StatusTemporaryRedirect, "/users")

}

Expand All @@ -245,7 +245,7 @@ func MakeUserAdmin(c *gin.Context) {
return
}

c.Redirect(http.StatusPermanentRedirect, "/users")
c.Redirect(http.StatusTemporaryRedirect, "/users")
}

func RemoveUserAdmin(c *gin.Context) {
Expand All @@ -268,7 +268,7 @@ func RemoveUserAdmin(c *gin.Context) {
return
}

c.Redirect(http.StatusPermanentRedirect, "/users")
c.Redirect(http.StatusTemporaryRedirect, "/users")
}

func LoginUser(c *gin.Context) { c.HTML(http.StatusOK, "users-login.html", gin.H{}) }
Expand Down
2 changes: 1 addition & 1 deletion medialog.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var (
gormDebug bool
)

const version = "v0.2.0-beta"
const version = "v0.2.1-beta"

func init() {

Expand Down
2 changes: 1 addition & 1 deletion templates/global/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="container">
<span class="text-muted ">
<div class="float-right">
<a href="https://github.com/nyudlts/go-medialog">go-medialog v0.2.0-beta</a>
<a href="https://github.com/nyudlts/go-medialog">go-medialog v0.2.1-beta</a>
</div>
</span>
</div>
Expand Down

0 comments on commit 2478447

Please sign in to comment.