fix: git redirect

This commit is contained in:
ngn 2024-05-09 19:55:34 +03:00
parent 1bfa5df0c8
commit 31cb348a62

View File

@ -131,8 +131,8 @@ func ConfigRoute(c *fiber.Ctx) error{
}
for _, cur := range configs {
if cur.Name == name {
return c.Redirect(cur.Redirect)
if cur.Name == name || cur.Name+".git" == name {
return c.Status(301).Redirect(cur.Redirect)
}
}