code refactoring
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user