refactor publish week api