Skip to content

Commit

Permalink
a perm redirect for /link/list
Browse files Browse the repository at this point in the history
  • Loading branch information
bengarrett committed Sep 9, 2024
1 parent 81e5c79 commit 824f075
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions docs/todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
### Stuff to do

* Repack zips that contain programs with bad filenames, for example: http://localhost:1323/f/ab252e4
* _Thumbnail assets_ links need better separation.
* 404 errors :/ /editor/thumbnail/top/ ~ /editor/preview/crop11/ etc.
* Local file timestamp for file uploads is not being set.
* Redirect `/link/list` to wayback.defacto2.net.

### Live go.defacto2.net issues.

Expand Down
3 changes: 3 additions & 0 deletions handler/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@ func nginx(e *echo.Echo) *echo.Echo {
nginx.GET("/wayback/:url", func(c echo.Context) error {
return c.Redirect(code, "https://wayback.defacto2.net/"+c.Param("url"))
})
nginx.GET("/link/list", func(c echo.Context) error {
return c.Redirect(code, "https://wayback.defacto2.net/")
})
return e
}

Expand Down

0 comments on commit 824f075

Please sign in to comment.