code refactoring
This commit is contained in:
@@ -138,7 +138,7 @@ function AppContent() {
|
||||
<ListItemText primary="Home" />
|
||||
</ListItemButton>
|
||||
</Link>
|
||||
<Link to={'/downloaded'} style={
|
||||
<Link to={'/archive'} style={
|
||||
{
|
||||
textDecoration: 'none',
|
||||
color: mode === 'dark' ? '#ffffff' : '#000000DE'
|
||||
|
||||
@@ -31,6 +31,9 @@ func RunBlocking(port int, frontend fs.FS) {
|
||||
app.Get("/settings", func(c *fiber.Ctx) error {
|
||||
return c.Redirect("/")
|
||||
})
|
||||
app.Get("/archive", func(c *fiber.Ctx) error {
|
||||
return c.Redirect("/")
|
||||
})
|
||||
|
||||
app.Get("/downloaded", rest.ListDownloaded)
|
||||
app.Post("/delete", rest.DeleteFile)
|
||||
|
||||
Reference in New Issue
Block a user