feat: 0.1.2
All checks were successful
/ build ushare (push) Successful in 4s
/ clean (push) Successful in 0s

1. login page && auth required
  2. file dir cleanup
This commit is contained in:
loveuer
2025-05-09 17:49:12 +08:00
parent e5cf2c1367
commit 090253a752
31 changed files with 1178 additions and 36 deletions

View File

@ -49,11 +49,6 @@ func Fetch() nf.HandlerFunc {
func ShareNew() nf.HandlerFunc {
return func(c *nf.Ctx) error {
if opt.Cfg.Auth {
return c.SendStatus(http.StatusUnauthorized)
}
filename := strings.TrimSpace(c.Param("filename"))
if filename == "" {
return c.Status(http.StatusBadRequest).JSON(map[string]string{"msg": "filename required"})