refactor(routes): centralize route existence checking

- Removed All routes pool
This commit is contained in:
yusing
2025-09-13 23:49:45 +08:00
parent 2717dc963a
commit 1c080e067d
5 changed files with 28 additions and 26 deletions

View File

@@ -97,10 +97,6 @@ func (s *FileServer) Start(parent task.Parent) gperr.Error {
return nil
}
if err := checkExists(s); err != nil {
return err
}
routes.HTTP.Add(s)
s.task.OnFinished("remove_route_from_http", func() {
routes.HTTP.Del(s)