code refactoring

This commit is contained in:
2023-05-24 13:31:05 +02:00
parent ac6fe98dc8
commit b1c6f7248c
2 changed files with 4 additions and 1 deletions

View File

@@ -138,7 +138,7 @@ function AppContent() {
<ListItemText primary="Home" /> <ListItemText primary="Home" />
</ListItemButton> </ListItemButton>
</Link> </Link>
<Link to={'/downloaded'} style={ <Link to={'/archive'} style={
{ {
textDecoration: 'none', textDecoration: 'none',
color: mode === 'dark' ? '#ffffff' : '#000000DE' color: mode === 'dark' ? '#ffffff' : '#000000DE'

View File

@@ -31,6 +31,9 @@ func RunBlocking(port int, frontend fs.FS) {
app.Get("/settings", func(c *fiber.Ctx) error { app.Get("/settings", func(c *fiber.Ctx) error {
return c.Redirect("/") return c.Redirect("/")
}) })
app.Get("/archive", func(c *fiber.Ctx) error {
return c.Redirect("/")
})
app.Get("/downloaded", rest.ListDownloaded) app.Get("/downloaded", rest.ListDownloaded)
app.Post("/delete", rest.DeleteFile) app.Post("/delete", rest.DeleteFile)